Replies: 1 comment 3 replies
-
why not use the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!, I'm developing a React Native App using TRPC and React Query. I'm trying to replicate something similar to the Spotify offline behavior, where users can download some specific assets to have them when there is no service.
I've been trying to implement the
persistQueryClient
pluggin as follows:1.- Download from the BE the list of assets to keep in local storage
2.- Prefetch all the assets
3.- Store a query key of those fetches
4.- Implement
persistQueryClientSuscribe
to save in MMKV Storage the queries5.- When the user activates offline mode hydrate the query client with the info in storage using
persistQueryClientRestore
This is not working and I'm hustling trying to understand the documentation.
Any thoughts or ideas??
ReactQueryProvider.tsx
useOffline.ts
Beta Was this translation helpful? Give feedback.
All reactions