How to use cache globally in v.1.0.1 (in redux actions)? #1471
Unanswered
olesmarola
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello guys! I have a question about cache. In the old version I used this import:
import { cache } from 'swr'
to use it in redux action (for logout).But now cache can be used only in components with hook
useSWRConfig
. I can't use hooks inside redux action... What can I do in this situation? Is any solution for this case? Thanks for your help!Beta Was this translation helpful? Give feedback.
All reactions