New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Fetching #394
Labels
enhancement
New feature or request
Milestone
Comments
This could be implemented as a persistence adapter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: