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

Broadcast fired twice #308

Open
philippeluickx opened this issue Aug 22, 2016 · 0 comments
Open

Broadcast fired twice #308

philippeluickx opened this issue Aug 22, 2016 · 0 comments

Comments

@philippeluickx
Copy link

I am listening on language changes. I do a setLanguage and then a loadRemote to load up a new language. However, both fire a broadcast by calling broadcastUpdated().

  1. setCurrentLanguage
    setCurrentLanguage: function (lang) {
  2. setString
    setStrings: function (language, strings) {

My follow-up action includes communication with backend, which is happening twice then.

I see 2 options, either we skip the broadcast in setStrings or we apply a setCurrentLanguage in setStrings.

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

No branches or pull requests

1 participant