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
I would hope to be able to refresh/invalidate all caches after a new item is created.
Any ideas? Is there a recommended way to revalidate all related keys? Or should I just call it multiple times: one for the individual endpoint and one for the list endpoint?
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
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to mutate multiple endpoints with the
mutate
function? For example, I have a list of resources:And an API for creating new resources:
I would hope to be able to refresh/invalidate all caches after a new item is created.
Any ideas? Is there a recommended way to revalidate all related keys? Or should I just call it multiple times: one for the individual endpoint and one for the list endpoint?
Beta Was this translation helpful? Give feedback.
All reactions