eyalll
Default Query Function to resume paused mutations
I'm building a React Native App with an offline mode. I implemented a PersistQueryProvider and a built my own
createMMKVStoragePersister
.
When the app gets back online it fails to resume paused mutations because at that point functions does not exist.
Any advice on providing the default query fucntions since they already exist from the trpcClient?6 replies
pre fetch serveral prodecures dynamically
Hello!. I'm developing a React Native app which needs an offline mode for some assets that the user wants (like spotify albums or playlists).
I have an endpoint that tells me which assets to download and for which procedures, so I can rehydrate those react query procedures in Offline Mode.
The feature is working but I had to @ts-ignore, I'm trying to annotate this feature correctly.
The assestToDownload produre returns this type.
I prefetch data using a client and storing it to an offline database
I re hydrate using setData like this
1 replies