Replies: 1 comment
-
This might be caused by having multiple |
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've been using
mutate
to clear the cache in my React Native application:and this works as expected when I call this function in my application.
However, I recently created a private NPM package that contains many helper & utility functions to ease the development of apps for my organization, and I moved the function above to this private package:
But now, if I import this private package in another project and try to use the
clearCache()
function, the SWR cache is not cleared.Does anyone have any idea why
clearCache()
function above works when it's implemented directly in my project, but it no longer works when it's implemented and called from a different package?Beta Was this translation helpful? Give feedback.
All reactions