T
TanStack3y ago
exotic-emerald

routerState doesn't work in return of rootRoute component

Trying to do something like this in the rootRoute just like in the kitchen-sink example but getting the following error. 'routerState' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. Removing the condition in the return makes the error disappear and routerState is typed correctly. Using beta 38 with typescript 4.9.4
No description
No description
1 Reply
harsh-harlequin
harsh-harlequin3y ago
This will be fixed with the new reactivity engine. I’m shipping in the next day or two.

Did you find this page helpful?