File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function tanstackRouterBrowserTracingIntegration(
4444 if ( instrumentPageLoad && initialWindowLocation ) {
4545 const matchedRoutes = castRouterInstance . matchRoutes (
4646 initialWindowLocation . pathname ,
47- initialWindowLocation . search ,
47+ castRouterInstance . options . parseSearch ( initialWindowLocation . search ) ,
4848 { preload : false , throwOnError : false } ,
4949 ) ;
5050
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ SOFTWARE.
2929export interface VendoredTanstackRouter {
3030 history : VendoredTanstackRouterHistory ;
3131 state : VendoredTanstackRouterState ;
32+ options : {
33+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
34+ parseSearch : ( search : string ) => Record < string , any > ;
35+ } ;
3236 matchRoutes : (
3337 pathname : string ,
3438 // eslint-disable-next-line @typescript-eslint/ban-types
You can’t perform that action at this time.
0 commit comments