Enabling offline mode with the t3 stack
I'm using the t3 stack with trpc and prisma. The application I'm building is for use on construction sites who need a cached version of their data when their wifi is patchy. I want to keep using the stack i'm currently using but let users have access to their information if the wifi is sketchy which syncs to the database when wifi is established.
The application doesn't hold alot of data - maybe 50-200 rows of 2-3 sql tables.
Options I've considered
Thoughts?
The application doesn't hold alot of data - maybe 50-200 rows of 2-3 sql tables.
Options I've considered
- Using the persistance features in client state management libraries (e.g. zustand)
- Using a tool that keeps a local SQLite db in sync with a server db e.g. WatermelonDB, ElectricDB, powersync
Thoughts?