-
Notifications
You must be signed in to change notification settings - Fork 12
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
Option to disable morphing #24
Comments
Yes, I like this idea 👍 . Adding this option was something we discussed internally, but we left out for v1. If someone wants to give it a try I'll be happy to review the PR. To do this, I'd rename the current |
Or maybe better to keep it a single command and expose the option to the client as we expose the |
Finally I'd go with a Turbo reload here (not a full document reload), to make it smoother. That would introduce a dependency with Turbo, but having Turbo available is a fair assumption here. |
Turbo auto binds to the could be a check with a fallback: if (window.Turbo) {
} else {
} |
Libraries like Trix, and a number of other 3rd party javascript libraries tend to have issues with morphing, would it be possible to have an option to disable DOM Diffing and to store scroll position -> hard refresh -> scroll to stored position.
11ty does this with the
domDiff
option https://www.11ty.dev/docs/dev-server/#options and would be a nice way to still use the reloader if you know you have an incompatible page.The text was updated successfully, but these errors were encountered: