router icon indicating copy to clipboard operation
router copied to clipboard

Can't override defaultViewTransition

Open ceski23 opened this issue 1 year ago • 0 comments

Describe the bug

After configuring router with defaultViewTransition: true, using navigate or Link with viewTransition: false doesn't disable transition

Your Example Website or App

https://stackblitz.com/edit/github-g4ctdl?file=src%2Fmain.tsx

Steps to Reproduce the Bug or Issue

  1. Click About link, route change is transitioned correctly
  2. Click Home link, route change is transitioned but shouldn't

Expected behavior

Using Link or navigate with viewTransition: false should override defaultViewTransition and disable transition when changing route

Screenshots or Videos

No response

Platform

  • OS: Windows 11 (WSL)
  • Browser: Microsoft Edge
  • Version: 123

Additional context

No response

ceski23 avatar Apr 27 '24 19:04 ceski23