File tree Expand file tree Collapse file tree
packages/react-router/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ export class LazyRoute<TRoute extends AnyRoute> {
230230 }
231231
232232 useRouteContext : UseRouteContextRoute < TRoute [ 'id' ] > = ( opts ) => {
233- return useRouteContext ( { from : this . options . id , ...( opts as any ) } ) as any
233+ return useRouteContext ( { from : this . options . id , ...( opts as any ) } )
234234 }
235235
236236 useSearch : UseSearchRoute < TRoute [ 'id' ] > = ( opts ) => {
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export class RouteApi<
115115 }
116116
117117 useRouteContext : UseRouteContextRoute < TId > = ( opts ) => {
118- return useRouteContext ( { from : this . id as any , ...( opts as any ) } ) as any
118+ return useRouteContext ( { from : this . id as any , ...( opts as any ) } )
119119 }
120120
121121 useSearch : UseSearchRoute < TId > = ( opts ) => {
@@ -270,7 +270,7 @@ export class Route<
270270 }
271271
272272 useRouteContext : UseRouteContextRoute < TId > = ( opts ?) => {
273- return useRouteContext ( { from : this . id , ...( opts as any ) } ) as any
273+ return useRouteContext ( { from : this . id , ...( opts as any ) } )
274274 }
275275
276276 useSearch : UseSearchRoute < TId > = ( opts ) => {
@@ -542,7 +542,7 @@ export class RootRoute<
542542 }
543543
544544 useRouteContext : UseRouteContextRoute < RootRouteId > = ( opts ) => {
545- return useRouteContext ( { from : this . id , ...( opts as any ) } ) as any
545+ return useRouteContext ( { from : this . id , ...( opts as any ) } )
546546 }
547547
548548 useSearch : UseSearchRoute < RootRouteId > = ( opts ) => {
You can’t perform that action at this time.
0 commit comments