Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit edca66c

Browse filesBrowse files
committed
fix(experimental): isActive with custom params
1 parent 8d7709b commit edca66c
Copy full SHA for edca66c

File tree

Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed
Open diff view settings
Collapse file

‎packages/router/src/RouterLink.ts‎

Copy file name to clipboardExpand all lines: packages/router/src/RouterLink.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ function includesParams(
442442
if (
443443
!isArray(outerValue) ||
444444
outerValue.length !== innerValue.length ||
445-
innerValue.some((value, i) => value !== outerValue[i])
445+
innerValue.some(
446+
(value, i) => value.valueOf() !== outerValue[i].valueOf()
447+
)
446448
)
447449
return false
448450
}
Collapse file

‎packages/router/src/location.ts‎

Copy file name to clipboardExpand all lines: packages/router/src/location.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function isSameRouteLocationParamsValue(
219219
? isEquivalentArray(a, b)
220220
: isArray(b)
221221
? isEquivalentArray(b, a)
222-
: a === b
222+
: a?.valueOf() === b?.valueOf()
223223
}
224224

225225
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.