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
Fix Turbo navigation by updating to Turbo-compatible script tag
When navigating between pages with Turbo, JavaScript wasn't being
re-initialized because the layout was using old Turbolinks data
attributes instead of Turbo attributes.
Changes:
- spec/dummy/app/views/layouts/application.html.erb:
- Change data-turbolinks-track to data-turbo-track="reload"
- Add defer: true to ensure proper script loading order with Turbo
This ensures React components properly hydrate on Turbo navigation,
not just on hard refresh.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments