Typescript Equality issue on Material UI Autocomplete
问题 Data is stored as: { iso: "gb", label: "United Kingdom", country: "United Kingdom" }, { iso: "fr", label: "France", country: "France" } Value passed to the Autocomplete is: { iso: "gb", label: "United Kingdom", country: "United Kingdom" } Error reported in console Material-UI: the value provided to Autocomplete is invalid. None of the options match with {"label":"United Kingdom","iso":"gb","country":"United Kingdom"} . Type error reported on value={} Type 'string | ICountry' is not assignable