Creatable doesn't work with getOptionValue and getOptionLabel props
When using Creatable component with getOptionValue and getOptionLabel props, the functionality to create new options does not work.

Sandbox simple example here: https://codesandbox.io/s/creatable-custom-label-value-xr63g
The current workarround I'm using is to map the options to { label, value } format:
options.map( opt => ({ label: opt.name, value: opt.id }) )
Using getNewOptionData fixed this for me.
Hello -
In an effort to sustain the react-select project going forward, we're closing old issues.
We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version.
If you aren't using the latest version of react-select please consider upgrading to see if it resolves any issues you're having.
However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you!
I'm using version 5.2.2 and the problem persists. Duplicate of https://github.com/JedWatson/react-select/issues/2630 https://github.com/JedWatson/react-select/issues/3417 https://github.com/JedWatson/react-select/issues/3941
should be re-opened, still happens
As already mentioned above using getNewOptionData fixes the issue. Standard implementation of an option is { label, value }. If you use a custom option schema then you should also update the created option with this schema using the getNewOptionData prop.
<Creatable
getOptionValue={({ id }) => id}
getOptionLabel={({ name }) => name}
getNewOptionData={(value, label) => ({ id: value, label: label, __isNew__: true })}
/>
A re-opening of this issue is not necessary.
Thanks for your answer @Rall3n. While the answer helped to solve the issue, It takes a greate amount of time to debug and fix the issue to getOptionLabel and getOptionValue. Adding some coments in documentation should work.