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
This works for the most part. However, I’ve encountered an issue:
If I navigate from a page with Turbo enabled to a page where Turbo is disabled, the page is still loaded with Turbo Drive. This breaks functionality on some page pages where I’m not ready to enable Turbo.
Workaround
Add data: { turbo: false } to all my links that lead to pages where Turbo should be disabled.
Is there a better approach to dynamically enable and disable Turbo Drive between pages without needing to modify all the links manually?
The text was updated successfully, but these errors were encountered:
I am attempting to enable Turbo Drive iteratively in my Rails app to test it on specific pages before enabling it across the entire application.
I add the following to any controller I want to enable Turbo:
Add the following to layout:
This works for the most part. However, I’ve encountered an issue:
If I navigate from a page with Turbo enabled to a page where Turbo is disabled, the page is still loaded with Turbo Drive. This breaks functionality on some page pages where I’m not ready to enable Turbo.
Workaround
Add
data: { turbo: false }
to all my links that lead to pages where Turbo should be disabled.Is there a better approach to dynamically enable and disable Turbo Drive between pages without needing to modify all the links manually?
The text was updated successfully, but these errors were encountered: