You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on "Same path+hash, different state" a few times
Click on "Nested route with hash"
Click on "Same path+hash, different state" a few times
System Info
Codesandbox
Used Package Manager
npm
Expected Behavior
I'd expect the loaders to re-run if the link with a different URL state is clicked, as they have shouldRevalidate returning true.
Actual Behavior
On links without hash, the loaders revalidate as expected. However, when hashes are present, the loaders stay stale. We're hitting the short circuit in startNavigation due to this branch in isHashChangeOnly. My suggestion would be to check if state was not changed in
I'm using React Router as a...
library
Reproduction
System Info
Used Package Manager
npm
Expected Behavior
I'd expect the loaders to re-run if the link with a different URL state is clicked, as they have
shouldRevalidate
returning true.Actual Behavior
On links without hash, the loaders revalidate as expected. However, when hashes are present, the loaders stay stale. We're hitting the short circuit in
startNavigation
due to this branch inisHashChangeOnly
. My suggestion would be to check if state was not changed inreact-router/packages/react-router/lib/router/router.ts
Line 5323 in 94158cf
The text was updated successfully, but these errors were encountered: