Any developments with experimental_createPersister? #7677
Replies: 2 comments 2 replies
-
how did you manage to work around that? |
Beta Was this translation helpful? Give feedback.
-
There are a couple of ideas floating around, like exposing more functions from As for You could potentially use |
Beta Was this translation helpful? Give feedback.
-
Hi,
We've been trying out the fine-grained experimental_createPersister in a mobile app as a way to avoid issues with QueryClientProvider and a persister (on expoFileSystemStorage). We wanted to avoid everything being stored in a single file for the persister, as this seems to be a contributing factor to battery drain issues with our app on mobile devices.
The experimental_createPersister achieves this, and seems to work well. We're grateful for all your efforts in creating it. Unfortunately, the lack of support for mutation persistence means we can't really use it currently. Our users can connect to a server, download tasks, then switch to offline mode so that they can work on those tasks. Later they can go back online and the app will sync their edits back to the server, but with no mutation persistence, whilst offline if they close and reopen the app, the mutations are lost.
setQueryData also doesn't update the persister, but we managed to work around that.
These issues have been discussed previously, like here, here and here but a few months have gone by and we just wondered if there had been any further developments or decisions with the fine-grained persister, particularly regarding mutation persistence?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions