Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

After changing language and then coming back to english, the search placeholder displays weird strings #2507

Closed
sheeerio opened this issue Jun 27, 2021 · 2 comments

Comments

@sheeerio
Copy link

Screenshot 2021-06-27 at 7 06 00 PM

@sheeerio sheeerio changed the title After chaning language and then coming back to english, the search placeholder displays weird strings After changing language and then coming back to english, the search placeholder displays weird strings Jun 27, 2021
@sbhrwlr
Copy link

sbhrwlr commented Jun 30, 2021

I think this is happening due to use of useCallback hook whenever we change language it is starting a new function without terminating the previous callback instance and mixing the city region names like in your example it is mixing Karnataka and Alappuzha. And if we create terminating point it will terminate all the instances of useCallback function. I guess this is the reason correct me if I am wrong.

@shuklaayush
Copy link
Member

Duplicates #2322

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants