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

Await turbo stream insertion in DOM #36

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

excid3
Copy link
Contributor

@excid3 excid3 commented Oct 2, 2021

Turbo Streams are inserted into the DOM async currently. Being able to wait until these elements are inserted allows for the user to apply animations and take other actions after the insert is complete.

The wait won't break any existing usage, it would only introduce a small wait while the elements are inserted.

This should fix #35

@janko
Copy link

janko commented Oct 4, 2021

@excid3 Thank you for the quick fix. We've just tested it in our app, and it works as expected 👍🏻

@excid3
Copy link
Contributor Author

excid3 commented Oct 4, 2021

Fantastic. I think this is good to go then @marcelolx 👍

@marcelolx marcelolx merged commit 183ed3a into rails:main Oct 4, 2021
@excid3 excid3 deleted the await-turbo-stream branch October 4, 2021 15:56
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

Successfully merging this pull request may close these issues.

Waiting for turbo stream actions to finish executing
3 participants