re-hydrate the cache from storage #400
Answered
by
tannerlinsley
longstaff-elsevier
asked this question in
General
|
I am looking at a solution where we can hydrate the cache from a pre-known state, I can see how to extract the store through the subscribe method, but there is no way of populating the whole store again from that object that I can see. |
Answered by
tannerlinsley
Apr 24, 2020
Replies: 1 comment
|
You can populate the cache using |
0 replies
Answer selected by
longstaff-elsevier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can populate the cache using
queryCache.setQueryData(queryKey, data). With that primitive, you should be able to do most anything you need to, including looping over cache entries and using that to hydrate the cache.