You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the key cache is global across all useSWR calls.
How does it handle conflicts
Your cache keys shouldn't conflict, otherwise the cache isn't very useful. We've found that using the URL of the API you're calling to be good keys.
used in multiple contexts
If you have useSWR calls in multiple places that use the same key, the data is shared and updated in all contexts. This makes it easy to synchronize data between multiple pages that use the same data sources.
Is the key cache global? How does it handle conflicts if it's used in multiple contexts?
The text was updated successfully, but these errors were encountered: