router icon indicating copy to clipboard operation
router copied to clipboard

Typescript: useRouteContext with strict: false

Open maksymskuibida opened this issue 1 year ago • 0 comments

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

maksymskuibida avatar Jun 03 '24 08:06 maksymskuibida