Skip to content

Commit 00a791a

Browse files
committed
remove comment
1 parent 46b6df0 commit 00a791a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • packages/react-router/src/client

packages/react-router/src/client/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Resolves a navigate argument to a string path.
33
*
44
* React Router's navigate() accepts a string, number, or To object ({ pathname, search, hash }).
5-
* This function extracts the pathname from object arguments to avoid "[object Object]" in transaction names.
65
*/
76
export function resolveNavigateArg(target: unknown): string {
87
if (typeof target === 'object' && target !== null && 'pathname' in target) {

0 commit comments

Comments
 (0)