Skip to content
Discussion options

You must be logged in to vote
router.beforeResolve(async (to, from) => {
  if (from.name && to.name !== from.name) {
    await new Promise<void>((resolve) => {
      document.startViewTransition(resolve)
    })
  }
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yves-riot
Comment options

Answer selected by yves-riot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants