-
Hello guys, I am facing an interesting issue with paused mutations when running offline and have optimistic updates. Mutations run independently, and can be different or the same. In my case adding, editing, deleting records in a feed, all offline. Editing and Deleting in particular invalidate the query to fetch the feed list.
Once gets online, the app runs mutations run sequentially, but the invalidations run as soon as the onSettled is reached, so I have this scenario (all in offline, then online): I wondering how can I run all onSettled after running all mutations. I tried setting Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You'd need to make sure that invalidation is not running while mutations are still running. There are some approaches to get that done here: #2245 (comment) |
Beta Was this translation helpful? Give feedback.
You'd need to make sure that invalidation is not running while mutations are still running. There are some approaches to get that done here: #2245 (comment)