8 Replies
Hi @aitkn this is something we've definitely discussed internally! I used to work on mobile Google Photos so it's a problem close to my heart. We don't have explicit plans around this, but it remains on our radar.
In the short term, if you treat Convex queries as simply any query you'd do from your app, you can put the results in a write-through-cache on your local device, you will be able to get most things needed.
Alternatively, some folks in our community have had success integrating https://replicache.dev/ and Convex if you want something highly structured and opinionated around offline first.
Replicache
Replicache
@Indy wow this is an old thread... is there any updates with replicache integration at the moment?
@sujayakar did put together a sample: https://github.com/sujayakar/replicache-convex
GitHub
GitHub - sujayakar/replicache-convex
Contribute to sujayakar/replicache-convex development by creating an account on GitHub.
We are also thinking about this space a lot more actively now.
Replicache is about to get discontinued as rocicorp prioritizes another project (zero) now. Maybe Convex forks Replicache which would be awesome but I tried to look at other solutions like legendapp/state too but have nothing working yet. https://legendapp.com/open-source/state/v3/. See this thread also: https://discord.com/channels/1019350475847499849/1139602956728156270
Legend State
Legend State
I've started playing around with Tanstack Query Offline, Persist Plugin + Vite PWA for offline support, it's going well so far.
TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.
TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.
@Kevin07 Are you using TanStack Query Offline with Convex queries? I haven't tried this but am curious if it would work
Yeah I tried making a proof of concept last weekend and hopefully will play around with it more this weekend!
Its not too much different than the offline example linked above, but I'll try share my example this weekend 😄