Say I have two pages that each use a code switcher with the same name (i.e. they are synced). One of these code switcher has a language that the other one doesn't.
When I select the language that's not available on the other code switcher, it just shows up the picker, but not the content. It doesn't default back to a language that it knows, it just doesn't display any.
To fix this, there should be a check in place when loading the stored language from async storage that makes sure the stored language actually exists in the languages prop. If not, it should just keep the default value (the first item).
Say I have two pages that each use a code switcher with the same name (i.e. they are synced). One of these code switcher has a language that the other one doesn't.
When I select the language that's not available on the other code switcher, it just shows up the picker, but not the content. It doesn't default back to a language that it knows, it just doesn't display any.
To fix this, there should be a check in place when loading the stored language from async storage that makes sure the stored language actually exists in the
languages
prop. If not, it should just keep the default value (the first item).