ervi
ervi4d ago

offline mode (expo app)

I have an expo (react native) app which uses better-auth, tRPC, hono router, mysql DB. Do I have any option to enable the 1 core feature of my app (daily emotion tracking) to work in offline mode (i.e. no network) and sync when network is connected?
1 Reply
Nick
Nick3d ago
You could use persistence with TRQ? https://tanstack.com/query/v4/docs/framework/react/plugins/persistQueryClient eventually there will also be Tanstack DB for true local, and that can be tied into TRQ, but for now you might be rolling a lot on your own
persistQueryClient | TanStack Query React Docs
This is set of utilities for interacting with "persisters" which save your queryClient for later use. Different persisters can be used to store your client and cache to many different storage layers....

Did you find this page helpful?