Skip to content

formatOptionLabel - Type 'unknown' is not assignable #5155

Answered by Methuselah96
binhxn asked this question in Q&A
Discussion options

You must be logged in to vote

I noticed you're using a component called Search? How is that defined? Most likely the Search component is not correctly forwarding the generics from Select to Search. See the section on "Wrapping the Select component" in the TypeScript guide for more details.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@binhxn
Comment options

@Methuselah96
Comment options

@Methuselah96
Comment options

@binhxn
Comment options

Answer selected by binhxn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants