Replies: 1 comment
-
Could you create a CodeSandbox project to reproduce your issue? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I read it here that I need to compute the key differently, however still no refetch is triggered:
https://swr.vercel.app/docs/pagination#global-mutate-with-useswrinfinite
After some debugging I found the refetch depends on a "_i" context flag which seems only set by bound mutate.
swr/infinite/src/index.ts
Line 181 in 1d81109
Am I understanding it correctly? Anything else I need to do to get global mutate to work? My goals is to mutate without data (just refetch).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions