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

Re-introduce #627 #711

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Re-introduce #627 #711

wants to merge 1 commit into from

Conversation

seanpdoyle
Copy link
Contributor

@seanpdoyle seanpdoyle commented Sep 13, 2022

Restore #627

The changes originally introduced in hotwired/turbo#627 had some
negative side effects, including a batch of the current Chrome
failures
.

To resolve the issues, the diff was reverted by hotwired/turbo#715.

This commit re-introduces the changes proposed in hotwired/turbo#627
with additional test coverage to ensure that the rendering timing plays
nice with Snapshot caching and other existing rendering behavior.

Co-authored-by: Alex Robbin agrobbin@gmail.com

@seanpdoyle seanpdoyle force-pushed the fix-ci branch 5 times, most recently from 967c9fc to 98cde44 Compare September 14, 2022 01:36
@seanpdoyle seanpdoyle marked this pull request as draft September 14, 2022 02:59
@seanpdoyle seanpdoyle changed the title Fix CI failures Re-introduce #627 Sep 14, 2022
The changes originally introduced in [hotwired#627][] had some
negative side effects, including a batch of the [current Chrome
failures][ci].

To resolve the issues, the diff was reverted by [hotwired#715][].

This commit re-introduces the changes proposed in [hotwired#627][]
with additional test coverage to ensure that the rendering timing plays
nice with Snapshot caching and other existing rendering behavior.

[hotwired#627]: hotwired#627
[ci]: https://github.com/hotwired/turbo/actions/runs/3045476866/jobs/4907085095
[hotwired#715]: hotwired#715

Co-authored-by: Alex Robbin <agrobbin@gmail.com>
@manuelpuyol
Copy link
Contributor

@seanpdoyle what are we missing to reintroduce this change?

@seanpdoyle
Copy link
Contributor Author

@seanpdoyle what are we missing to reintroduce this change?

The implementation needs to be changed so that the test suite passes.

The failures in CI are genuine.

@manuelpuyol
Copy link
Contributor

The only test I see consistently fail locally is

test mutation record as before-cache notification

looking at the test, it checks if the cache is updated if the body is mutated after it gets removed, but before the cache happens.

Is that something Turbo has to support? what's the use case there?

@joonty
Copy link

joonty commented Jun 6, 2024

Is this still possible to include this feature? My application uses a Spotify audio player iframe, meaning that even with the data-turbo-permanent attribute the iframe is reloaded on page navigation and the user's playback is interrupted. If turbo could use a non-body element as the root node that would solve my problem, since I could move the iframe out of that node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants