Commit f03b935
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 <[email protected]>1 parent 70ca7b3 commit f03b935
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments