router
router copied to clipboard
Typescript: useRouteContext with strict: false
Describe the bug
root context is undefined in useRouteContext with strict: false
If I do from: '__root__' it works and cannot be undefined, but as far as I understand, root context cannot be undefined, so, even with strict: false root context properties should not be undefined.
Your Example Website or App
typescript
Steps to Reproduce the Bug or Issue
Expected behavior
I expected that root context properties should not be undefined in useRouteContext({strict: false})
Screenshots or Videos
No response
Platform
Additional context
No response