Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows get data in PhoneCodes bypassing caching #140

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

d-ukhanov
Copy link
Contributor

I was getting country datas from PhoneCodes for the profile/settings page. On the same page it was possible to switch locale from English to Russian and vice versa. But because of _allCountryDatas I couldn't get an updated list of countries.
I rebuild the page using Bloc, but any other ways didn't work either. Only if I completely reload the page, which is not suitable.
So I added the isForce argument to bypass unnecessary caching, but I don't really see the point of _countryCodes and _allCountryDatas anyway.

@caseyryan caseyryan merged commit 151380c into caseyryan:master Sep 12, 2023
@caseyryan
Copy link
Owner

caseyryan commented Sep 12, 2023

Спасибо! Согласен с решением. Смерджил
getAllCountryCodes это упрощенный список кодов стран, в строчном виде. Иногда нужен для отправки на бекенд или для заполнения чего-то

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants