Replies: 1 comment 2 replies
-
Yes, that should work in the sense the component will use the cached data, however because how SWR works it will revalidate it when mounted so It will fetch it again. You can disable this with the |
Beta Was this translation helpful? Give feedback.
2 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.
-
Our search hook (useSWR) returns a bunch of results.
Would it be possible to update individual cache keys without those cache keys ever being used before?
so that when the item is actually rendered the "smart" component can use it as:
and the item is not fetched from the server again?
Beta Was this translation helpful? Give feedback.
All reactions