Skip to content
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

Open
maxnowack opened this issue Nov 29, 2023 · 1 comment · May be fixed by #644
Open

Auto Fetching #394

maxnowack opened this issue Nov 29, 2023 · 1 comment · May be fixed by #644
Labels
enhancement New feature or request
Milestone

Comments

@maxnowack
Copy link
Owner

maxnowack commented Nov 29, 2023

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 maxnowack added this to the v1.0.0 milestone Nov 29, 2023
@maxnowack maxnowack added the enhancement New feature or request label Nov 29, 2023
@maxnowack
Copy link
Owner Author

This could be implemented as a persistence adapter

@maxnowack maxnowack changed the title Async Data Loaders Auto Fetching Apr 4, 2024
@maxnowack maxnowack linked a pull request Apr 4, 2024 that will close this issue
maxnowack added a commit that referenced this issue Apr 25, 2024
maxnowack added a commit that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant