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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I can't seem to find an answer to this in the docs, let me know if I've just missed it.
When I use my hooks like this:
The successful mutation of
useSWRMutation
automatically invalidatesuseSWR
.However if my hooks look like this:
I have no way of invalidating
useSWR
when the mutation succeeds.The
mutate
function has a way of using a function to check what to invalidate, butuseSWRMutation
doesn't seem to support that.What am I missing here?
Beta Was this translation helpful? Give feedback.
All reactions