Skip to content

Commit

Permalink
fix comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jun 30, 2023
1 parent fb7534d commit 599d2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router/lib/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ export function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker {
}
}, [router, blockerKey, blockerFunction]);

// Prefer the blocker from `state` since not `router.state` DataRouterContext
// Prefer the blocker from `state` not `router.state` since DataRouterContext
// is memoized so this ensures we update on blocker state updates
return blockerKey && state.blockers.has(blockerKey)
? state.blockers.get(blockerKey)!
Expand Down

0 comments on commit 599d2fc

Please sign in to comment.