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

Documentation for Background Events should have example about how to terminate logic #1200

Open
stock90975 opened this issue Jan 31, 2025 · 1 comment

Comments

@stock90975
Copy link
Contributor

https://reflex.dev/docs/events/background-events/

It is not clear how to terminate a running background when the user closes the page or navigates away.

See:
reflex-dev/reflex#2671
reflex-dev/reflex#3387
https://github.com/orgs/reflex-dev/discussions/3378

It seems the current solution is:
reflex-dev/reflex#3388

Without this users can not terminate logic in background tasks

It would be great if the example be updated to demonstrate how this is done.

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