T
TanStack2y ago
extended-salmon

how to use a live query in loaders

I am using electric-sql's useLiveQuery or liveMany to query data from inside components (useLiveQuery) or async code (liveMany). Use case is a local-first app saving data to and fetching it from local sqlite and syncing with a server in the background. Would it make any sense to use live queries inside loaders and if so how could it be done?
Typescript - ElectricSQL
Function API and types provided by the generated data access library.
React - ElectricSQL
The library for web and native user interfaces.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?