Rehydrated mutations are being run multiple times, once in each tab #6733
-
I'm encountering an issue when trying to implement dehydration of mutations. We are using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Not sure I understand the requirements here. Usually, you store to disk because you want a new tab to pick up where you left ? |
Beta Was this translation helpful? Give feedback.
tabs don't know anything about each other. if you open the same app in two tabs, they will both read the data from storage, so they will both see a paused mutation that they should retry. Now maybe the
broadcastQueryClient
plugin would inform other tabs that one mutation has already been triggered, but since the replay happens at the same time, this would likely already have been too late.I think it's just technically really hard to:
basically you're saying persisted mutation should only ever be read out from storage once? I guess you c…