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