Replies: 1 comment 2 replies
-
A new API will make this more complex, not simpler. I think there should be a single place where this can be configured so you can then use You don't want to add an alternative to Link, Form, etc. that has viewTransition by default, so this needs to be a centralized configuration. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently creating programmatic navigation with view transition requires the following code:
If a transition is used in the application it is likely that all navigation calls will use it -- and as far as I can see there is no way to set it globally.
Considering this, it would be nice to have a simple "shorthand" method which would perform a navigation with
viewTransition: true
, avoiding adding that to each and everynavigate()
call.Something like this:
Beta Was this translation helpful? Give feedback.
All reactions