react-router icon indicating copy to clipboard operation
react-router copied to clipboard

[Bug]: v7_startTransition option breaks relative links

Open Diggsey opened this issue 2 years ago • 0 comments

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

Diggsey avatar Nov 28 '23 15:11 Diggsey