TanStackT
TanStack11mo ago
7 replies
dead-brown

No shouldThrow option for useRouteContext

The useRouterContext hook sometimes throws a invariant error. I see in the source code that it uses useMatch, but there is currently no way for me now to pass shouldThrow as
false
to that useMatch.

Could that be added as a possible property for useRouteContext?
Was this page helpful?