Skip to content

Commit 6415f3a

Browse files
committed
fix typo
1 parent 1abe213 commit 6415f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router/lib/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ export function useRoute<Args extends UseRouteArgs>(
18711871
);
18721872
const id: keyof RouteModules = args[0] ?? currentRouteId;
18731873

1874-
const state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);
1874+
const state = useDataRouterState(DataRouterStateHook.UseRoute);
18751875
const route = state.matches.find(({ route }) => route.id === id);
18761876

18771877
if (route === undefined) return undefined as UseRouteResult<Args>;

0 commit comments

Comments
 (0)