Something similar to cache-first for Apollo and Urql? #2128
Unanswered
frederikhors
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the amazing
svelte-query
and I opened this question there too.Coming from Apollo or Urql I would like to know if there is a way to mimic (or improve) the behavior of policies like "
cache-first
":An example: I already have user data queried in Home page then I navigate to User page and I wanna say to svelte-query to NOT query again my user data because I already have them in cache (with Infinite stale).
Am I wrong to want this?
I tried with the
enabled
option but obviously if navigate on the user's page before the Home page the query does not start at all.How to do?
Beta Was this translation helpful? Give feedback.
All reactions