[Bug]: When using unstable_useBlocker with initial value true, Works on the second transition.Β #10144
Closed
Description
What version of React Router are you using?
6.8.2
Steps to Reproduce
- Open https://stackblitz.com/edit/vitejs-vite-lja2ey?file=src/App.tsx
- Click "1" link.
- Click "home" link.
- Click "home" once more.
Expected Behavior
Confirm does pop up when first click.
The "2" link, which is set to true in the middle instead of the default, works as expected.
Actual Behavior
Confirm does pop up when second click.