I’m trying to ultimately achieve pre-fetching with Apollo and i’m not sure how to go about it and I can’t seem to find any info about this in the docs.
A simple example is to manually fetch seconds (or ms) before you need to consume it and when going to the next page, the connect fires the query again but gets the cached data instead of making another server request.
With my old setup of Redux and AJAX I can just dispatch the new response data before transitioning the router and the next page would have the cached data on initial render.
@SkinnyGeek1010 if you just call client.query at any time before, that query will be in the cache, and then when you display the UI component it will just get it immediately.
Would the connect make a (2nd) call again though? I imagine this would be around a few ms later. I guess it’s not a big deal to re-call again but was more less curious.