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
Hi, I am using swr in a component that also mutates the data. I want this value to be cached and uploaded to the server. This works fine with mutate, but I notice a race condition where If I mutate as I type sometimes, the value im typing will be overwritten by the response from mutate.
TL;DR is there a way to update the cache without the broadcast/components reloading?
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.
-
Hi, I am using swr in a component that also mutates the data. I want this value to be cached and uploaded to the server. This works fine with mutate, but I notice a race condition where If I mutate as I type sometimes, the value im typing will be overwritten by the response from mutate.
TL;DR is there a way to update the cache without the broadcast/components reloading?
Beta Was this translation helpful? Give feedback.
All reactions