Skip to content

Issue with react-select AsyncCreatableSelect does not show values with Formik #2954

Answered by johnrom
flora8984461 asked this question in Q&A
Discussion options

You must be logged in to vote

We discussed this in another issue or discussion. AsyncCreatableSelect requires you pass the full option object. If you only pass opt.value to Formik (I recommend doing this, but it's very hard to use with AsyncCreatableSelect), you then have to select the option that matches formik.values.yourValue and pass that option object to AsyncCreatableSelect. This isn't an issue with Formik, but with AsyncCreatableSelect.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@flora8984461
Comment options

@johnrom
Comment options

@flora8984461
Comment options

@johnrom
Comment options

@flora8984461
Comment options

Answer selected by flora8984461
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@flora8984461
Comment options

@flora8984461
Comment options

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