Coder Social home page Coder Social logo

Comments (3)

marcglasberg avatar marcglasberg commented on August 17, 2024 2

To be honest with you: I have published 11 packages, and also have my main project to take care of, so my brain cannot keep all of the details at the same time. I am not sure now, but by looking at I18n.define it doesn't seem to rebuild. Only when _I18nState.locale is set it calls setState, which calls the build method, which calls _rebuildAllChildren to mark the whole tree below it as dirty.

You can, of course, add a print("REBUILD") into _I18nState.build() to see when it gets rebuild.

If you are having problems with isolates I am sure this is of interest to other people. So it would be really nice if you solve this problem! But try to make sure you come up with the right solution because I am not able to make sure to check if it is OK at the moment.

If you do come up with a solution I should probably add a section in the docs explaining how to deal with isolates. Would you mind suggesting the text for this explanation?

from i18n_extension.

marcglasberg avatar marcglasberg commented on August 17, 2024

Sorry, but I don't have experience with isolates. Do you like me to remove the @VisibleForTesting annotation so that you don't get those warnings anymore? Would that solve your problem?

from i18n_extension.

EArminjon avatar EArminjon commented on August 17, 2024

Hum, I just start with isolate and i didn't know what is the best way... I don't want to force you to edit the source code if i go wrong :/

I18n.define just change locale without call rebuild method right ?

from i18n_extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.