Replies: 1 comment
-
duplicate of #2496 |
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'm using the
swr
package. I successfully fetch data usinguseSWR
, but when I try to mutate the data - it does not work, and the cached state ofswr
does not change (as it should).I created my custom hook:
And this is my
BackendService
:Now, I have the following code:
So when the
onRevokeAllSecrets
is executed - the cached state does not change.But if I use
mutate
ofuseSWRConfig
it works:Could anyone tell why? I checked and my
BackendService.delete
call completes successfully.Beta Was this translation helpful? Give feedback.
All reactions