We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98c2f06 commit 9db966cCopy full SHA for 9db966c
1 file changed
packages/react-router/src/link.tsx
@@ -261,6 +261,10 @@ export function useLinkProps<
261
}
262
263
// Hash is not available on the server
264
+ if (activeOptions?.includeHash) {
265
+ return false
266
+ }
267
+
268
return true
269
})()
270
@@ -504,8 +508,8 @@ export function useLinkProps<
504
508
505
509
506
510
507
- if (isHydrated && activeOptions?.includeHash) {
- return s.location.hash === next.hash
511
512
+ return isHydrated && s.location.hash === next.hash
513
514
515
},
0 commit comments