These files demonstrates how to persist queries and mutations to offline state with the following behaviour:
- Serve from query cache if offline
- Persist mutations if offline, and resume mutations once online
It's important to set the online manager state before rendering the <QueryClientProvider />
, for example:
<NetworkStateProvider>
<QueryClientProvider>{children}</QueryClientProvider>
</NetworkStateProvider>