Maximum call stack size exceeded while using apollo graphql hook useQuery

Viewed 385

I am using useQuery hook to call a grahql query but getting this error - /

RangeError: Maximum call stack size exceeded

readFromStore.ts:487
  484 | execResults.forEach(execResult => {
  485 |   if (execResult.missing) {
  486 |     missing = missing || [];
> 487 |     missing.push(...execResult.missing);
      | ^  488 |   }
  489 | });
  490 | return {

I am using the fetch policy cahce-first to load the data from cahce if avaiblable.

If I refresh the page it working fine. I think it is related to cache. But I am already using the latest version of apollo-cache-inmemory.

0 Answers
Related