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 8d7709b commit edca66cCopy full SHA for edca66c
packages/router/src/RouterLink.ts
@@ -442,7 +442,9 @@ function includesParams(
442
if (
443
!isArray(outerValue) ||
444
outerValue.length !== innerValue.length ||
445
- innerValue.some((value, i) => value !== outerValue[i])
+ innerValue.some(
446
+ (value, i) => value.valueOf() !== outerValue[i].valueOf()
447
+ )
448
)
449
return false
450
}
packages/router/src/location.ts
@@ -219,7 +219,7 @@ function isSameRouteLocationParamsValue(
219
? isEquivalentArray(a, b)
220
: isArray(b)
221
? isEquivalentArray(b, a)
222
- : a === b
+ : a?.valueOf() === b?.valueOf()
223
224
225
/**
0 commit comments