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

[NgRx/signals]feat:withPolling / withAutoRefresh #10

Open
mzkmnk opened this issue Jan 1, 2025 · 0 comments
Open

[NgRx/signals]feat:withPolling / withAutoRefresh #10

mzkmnk opened this issue Jan 1, 2025 · 0 comments

Comments

@mzkmnk
Copy link
Member

mzkmnk commented Jan 1, 2025

Description
Add a mechanism to periodically refresh the store’s data via scheduled polling or auto-refresh. This is useful for live dashboards, real-time analytics, or any component that needs to stay in sync with external data without manual triggers.

Why This Matters

  • Automatic Updates: Reduces the need for users to manually refresh data.
  • Improved UX: Ensures data displayed in the app is current, especially in scenarios where real-time or near-real-time info is critical.

Possible Approaches

  • Provide a configuration option like pollInterval that, when set, triggers an effect or method to fetch and update state at regular intervals.
  • Allow customizing the polling strategy (e.g., exponential backoff, manual pause/resume).
  • Integrate seamlessly with Angular’s Signals, so UI automatically reflects the updated state without extra boilerplate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant