signaldb icon indicating copy to clipboard operation
signaldb copied to clipboard

Auto Fetching

Open maxnowack opened this issue 7 months ago • 1 comments

The implementation of auto fetching in SignalDB is proposed to enhance its data handling capabilities. This feature involves registering queries when they are executed and unregistering them once they leave the reactive context. When a query is registered, a callback function will be invoked, allowing data to be loaded from an external system into SignalDB's in-memory database. After the data loading is complete, the reactive context will re-execute, and the query will return the newly fetched data. Additionally, a reactive function on the collection, such as isPreloading(), will be implemented to indicate the loading state. This feature aims to optimize data retrieval processes, particularly in scenarios requiring dynamic data loading from external sources, while maintaining the reactivity and performance efficiency of web applications using SignalDB.

maxnowack avatar Nov 29 '23 09:11 maxnowack