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

Replace [data-turbo-cache=false] with [data-turbo-temporary] #5664

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

Conversation

eduardoyutaka
Copy link

Following the suggestion from issue #5662

The turbo drive's attribute [data-turbo-cache=false] was deprecated in favor of data-turbo-temporary

@timdiggins
Copy link

This should work with Turbo >= 7.3.0 and won't work with Turbo < 7.3.0

Could just support latest version of turbo? (break in old Turbo)

Or stick with old turbo? (deprecation warnings on new Turbo)

Could have a turbo compatibility layer:

  <div id="error_explanation" <%= Devise::TurboCompat.gte_730? &&  'data-turbo-temporary' || 'data-turbo-cache="false"' %>>

Given that Turbo is a Js library, it seems tricky to find an automatic way to support different versions of turbo. Would then have to be configured by either an env var or a devise configuration option?

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.

2 participants