-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Can not stop polling after page navigation changes. #100
Comments
Hi, @vinitsharma87! Thanks for submitting the issue. There's a way to start and stop polling when interacting with an element on the page. There's no option to do it when you switch pages because when you switch pages, new JavaScript gets loaded. Are you maybe using Turbolinks? It sounds to me like you are. There's a way to use Tell me if this solves your problem! |
I'm closing this due to inactivity. If this still persists, feel free to reopen the issue or comment! |
Hi @nikolalsvk. I'm actually having this problem too. I've set the config to It looks as though the turbolinks config option handles removing event listeners on Let me know if this sounds right. Thanks for your work on this project! |
Thanks for the info @tristang! I'll look more into this |
Hey, folks (@vinitsharma87 and @tristang), I released a fix for this in 2.1.6. Let me know if it works out for you! |
Hi,
Is there a way to stop the polling once user navigates to a different page other than the one in which a 'render_async' partial is rendered.
Another problem case I found is as under:
Can anyone help with above problems please.
Thanks.
The text was updated successfully, but these errors were encountered: