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 46b6df0 commit 00a791aCopy full SHA for 00a791a
1 file changed
packages/react-router/src/client/utils.ts
@@ -2,7 +2,6 @@
2
* Resolves a navigate argument to a string path.
3
*
4
* 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.
6
*/
7
export function resolveNavigateArg(target: unknown): string {
8
if (typeof target === 'object' && target !== null && 'pathname' in target) {
0 commit comments