Adding a hook which would help with view transitions #10952
filipegeric
started this conversation in
Proposals
Replies: 0 comments
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.
-
Right now, in order to perform a view transition when navigating something like this is required:
However this doesn't work when the user clicks back button in the browser for example. In order to handle something like this I tried using the navigation API (https://developer.chrome.com/docs/web-platform/navigation-api/) alongside react router, but I failed to achieve what I wanted.
Ideally, there would be a hook that would enable this. Something like:
Is something like this already possible to achieve in some way, and if not would it be possible to implement in the following versions?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions