You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcountries=useMemo(()=>{returncountryList().setEmpty("Select a Country").getData();},[]);
I end up with a duplicate empty value
Am I using the .setEmpty() method wrong?
I messed around with the setEmpty() method and saw that changing to a .concat method instead of .unshift fixed the problem for me. Not sure why. Want me to open a PR or can you think of a cleaner way to do it?
When I set an initial empty value like so:
I end up with a duplicate empty value
![Screenshot 2022-01-12 at 17 39 41](https://user-images.githubusercontent.com/15416422/149194947-73adef34-3f7c-4b86-a1e6-8b45d0588f51.png)
Am I using the .setEmpty() method wrong?
I messed around with the setEmpty() method and saw that changing to a .concat method instead of .unshift fixed the problem for me. Not sure why. Want me to open a PR or can you think of a cleaner way to do it?
The text was updated successfully, but these errors were encountered: