-
Notifications
You must be signed in to change notification settings - Fork 430
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
Add a turbo:reload
event that returns the reason why turbo needed to do a hard reload.
#556
Conversation
Co-authored-by: dgreif <[email protected]>
…context to the error
I like this. @seanpdoyle thoughts on implementation? |
hey @dhh @seanpdoyle 👋 |
Could you share a use-case that depends on the contents of the I can understand the utility of the |
@seanpdoyle that's a great question. We compute hashes for JS versions, and CSP headers, which we deliver in |
I think that the granularity helps the user understand what is going on with their app. Giving that information to the user will be important so they can react accordingly. |
@seanpdoyle those cases make sense for you? |
I feel like we are missing an event fired when the page is going to be hard reloaded. With
turbo:reload
users will be able to listen to why their Turbo navigations are causing reloads instead of soft-navigation. That will help users track the data and improve their apps.