Skip to content

Commit

Permalink
fix: avoid "Type instantiation is excessively deep and possibly infin…
Browse files Browse the repository at this point in the history
…ite" error with `useSearch(strict: false, experimental_returnIntersection: true)` (#1224)
  • Loading branch information
schiller-manuel committed Feb 25, 2024
1 parent d5d9895 commit d165151
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-router/src/useSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export function useSearch<
RouteById<TRouteTree, TFrom>['types']['fullSearchSchema'],
RootSearchSchema
>
: Expand<
Partial<Omit<FullSearchSchema<TRouteTree>, keyof RootSearchSchema>>
>,
: Partial<Omit<FullSearchSchema<TRouteTree>, keyof RootSearchSchema>>,
TSelected = TSearch,
>(
opts: StrictOrFrom<TFrom, TReturnIntersection> & {
Expand Down

0 comments on commit d165151

Please sign in to comment.