if I simply use like this
defaultCountry={"SG"} it working fine
if I do this, my page will hang. it goes infinite loop
defaultCountry={formik.values?.countryCode ? formik.values?.countryCode as MuiTelInputCountry : 'SG'}
In my current scenario I have other Country Select, in which I am getting country code like this
I just install this package today
if I simply use like this defaultCountry={"SG"} it working fine
if I do this, my page will hang. it goes infinite loop defaultCountry={formik.values?.countryCode ? formik.values?.countryCode as MuiTelInputCountry : 'SG'}
In my current scenario I have other Country Select, in which I am getting country code like this
and here i am passing dynamic country code like this, which is going infinite.