Persist data and network error
Hello guys,
I wanted to use my custom asyncQueryClientPersister as a offline system for my mobile app. It seems to works, except that the first time the request fail, it will work and get last data fetched, but if I try again, it will then remove the stored data because last response is a network error and it seems to erase older data's.
Is there a way to prevent this ? Or any other idea to make my app offline ? (I'm using Capacitor to run my JS website as a web app)
Thanks
I wanted to use my custom asyncQueryClientPersister as a offline system for my mobile app. It seems to works, except that the first time the request fail, it will work and get last data fetched, but if I try again, it will then remove the stored data because last response is a network error and it seems to erase older data's.
Is there a way to prevent this ? Or any other idea to make my app offline ? (I'm using Capacitor to run my JS website as a web app)
Thanks