-
Notifications
You must be signed in to change notification settings - Fork 415
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
data-turbo-preview not working in beta.4 #159
Comments
seanpdoyle
added a commit
to seanpdoyle/turbo
that referenced
this issue
Feb 6, 2021
Closes hotwired#117 Closes hotwired#159 --- When restoring from a cached snapshot, pass along the `isPreview` flag to `View.renderPage`. Also, always issue the request within `Visit.issueRequest`, since process of restoring the cached preview is initiated prior to the request intended to re-fetch the cached content.
seanpdoyle
added a commit
to seanpdoyle/turbo
that referenced
this issue
Feb 7, 2021
Closes hotwired#117 Closes hotwired#159 --- When restoring from a cached snapshot, pass along the `isPreview` flag to `View.renderPage`.
@seanpdoyle Yep, that did it. Looking forward to the fix released. Thanks! |
seanpdoyle
added a commit
to seanpdoyle/turbo
that referenced
this issue
Feb 10, 2021
Closes hotwired#117 Closes hotwired#159 --- When restoring from a cached snapshot, pass along the `isPreview` flag to `View.renderPage`.
seanpdoyle
added a commit
to seanpdoyle/turbo
that referenced
this issue
Apr 9, 2021
Closes hotwired#117 Closes hotwired#159 --- While the original implementation change for this commit was covered elsewhere, there is still value in the tests to add coverage for the behavior.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In beta.4, the attribute
data-turbo-preview
is never present ondocument.documentElement
even when visiting a cached page. It was working fine in beta.3.For example, I create a Stimulus controller as follows. Whenever I visit a cached page in beta.3, I would get
true
followed byfalse
. But in beta.4, I would getfalse
twice.The caching mechanism itself works fine though.
The text was updated successfully, but these errors were encountered: