Open dturkington49 opened 4 years ago
@dturkington49 Not sure if this is related, but I've seen a similar error when previewing pages that contain imageSharp queries. In this issue #139 a fix is referenced. It changes the fetchPolicy
to no-cache
and that seems to solve the imageSharp issue. When I manually changed that line in my local node_modules
it fixed the issue for me. Could be worth testing to see if they're related.
Background
I would like to display 100+ instances of published content from Prismic on a single page. The GraphQL client only allows 20 results per query. In order to get more results I need to paginate the them. I would like to render more pages of results automatically as the user scrolls.
Problem
I working off this example: https://github.com/birkir/gatsby-source-prismic-graphql/blob/master/examples/pagination/src/pages/index.js It's pretty similar to what I want. Everything works as expected until we hit prismic.load. It is throwing the error in the console:
I can tell the paginated query is returning a 200 from the network tab. This error appears to be thrown after the query but before load() returns. All in all, this is a pretty simple function but I may be missing something.
Example code