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

Pushing updates pile up in unfocussed tab #52

Closed
danricho opened this issue Jul 29, 2024 · 3 comments
Closed

Pushing updates pile up in unfocussed tab #52

danricho opened this issue Jul 29, 2024 · 3 comments
Labels
question Further information is requested

Comments

@danricho
Copy link

Hi,

I am using external triggers in my flask application to trigger turbo.push(turbo.replace(xxx)) actions.

However when my client (chrome tab) is not in focus, it isn't processed and if left out of focus long enough, the backlog can crash the browser.

What is the strategy that people use for this?

Great extension - thanks!

@miguelgrinberg
Copy link
Owner

miguelgrinberg commented Jul 30, 2024

This is an issue in hotwire turbo, not in this package. See hotwired/turbo#920. They appear to have fixed the issue in v8, while Turbo-Flask uses 7.3.0 currently.

You can upgrade passing your version when you initialize the extension, for example:

{{ turbo(version="8.0.5") }}

@miguelgrinberg miguelgrinberg added the question Further information is requested label Jul 30, 2024
@miguelgrinberg
Copy link
Owner

@danricho I just released a new version of Turbo-Flask that uses hotwire turbo 8.0.5 by default.

@danricho
Copy link
Author

Thanks very much @miguelgrinberg !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants