You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes [hotwired#794][]
Reverts the implementation change made in [hotwired#674][], and in
its place passes `shouldCacheSnapshot: false` alongside `willRender:
false` for the `action: "replace"` Visit proposed when following a
redirect.
In order to test this behavior, this commit introduces the
`readBodyMutationLogs` test utility function, along with the
`window.bodyMutationLogs` property and the `BodyMutationLog` type.
`BodyMutationLog` instances are pushed onto the log `Array` whenever the
`<body>` element is replaced.
[hotwired#794]: hotwired#794
[hotwired#674]: hotwired#674
Copy file name to clipboardexpand all lines: src/tests/fixtures/rendering.html
+1
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ <h1>Rendering</h1>
45
45
<p><aid="permanent-in-frame-element-link" href="/src/tests/fixtures/permanent_element.html" data-turbo-frame="frame">Permanent element in frame</a></p>
46
46
<p><aid="permanent-in-frame-without-layout-element-link" href="/src/tests/fixtures/frames/without_layout.html" data-turbo-frame="frame">Permanent element in frame without layout</a></p>
0 commit comments