T
TanStack3y ago
rare-sapphire

ESLint: missing in props validation

I get eslint: useRouteContext is missing in props validation [react/prop-types] error when doing the types like this:
export const Posts: typeof postsRoute['options']['component'] = (props) => {...}
export const Posts: typeof postsRoute['options']['component'] = (props) => {...}
The LSP knows about the props, so I have auto-completion. Does anyone have an idea why ESLint is complaining ?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?