Open
Description
What problem does this feature solve?
Since React Router 6.27.0, using View Transition API requires only adding viewTransition prop to Link component:
<Link to={to} viewTransition>
Click me
</Link>
It can replace the current useViewTransition
hook in Rspress, and this should fix the current runtime error logs when using themeConfig.enableContentAnimation
:
What does the proposed API look like?
- Using the
viewTransition
prop - The React Router document also notes that
viewTransition
only works when using a data router, see Picking a Router.