The Select component of Polaris works well when the options are defined on load, as you can see in the documentation.
However if the options are created dynamically, eg. fetched from an external source, the selected option's label is not updated after we select an option, the selected option's value is recognized correctly. Please check the live sandbox here. Do you know how to solve this? Thanks!
That's because
handleSelectChangereceives the new value as astringwhile in your fetchedoptionsarray thevalueproperty is a number.<Select />component cannot find the selected value because the types don't match.Just convert your IDs to strings: