react-router
react-router copied to clipboard
[Bug]: v7_startTransition option breaks relative links
What version of React Router are you using?
6.15.0
Steps to Reproduce
- Use react-suspense and react-router with the v7_startTransition option enabled.
- Click on a relative nav link, eg.
to="foo/bar"where the target page uses some asynchronous state (ie. it triggers a react suspense) - Click on the relative link a second time before the suspense has completed.
Expected Behavior
The second click should have no meaningful effect (ie. the user should still end up on /foo/bar).
Actual Behavior
The relative navigation happens twice, so the user ends up on /foo/bar/foo/bar