GithubHelp home page GithubHelp logo

Comments (2)

fisherwebdev avatar fisherwebdev commented on April 19, 2024

In what way does this involve the actions, dispatcher or stores?

On Saturday, October 4, 2014, Justin Gordon [email protected]
wrote:

I have an callback for onBlur that will setState, and based on the state,
some buttons may be removed from the screen.

The problem is that one of these buttons has a callback that needs to run,
and if setState is called from the onBlur callback, then the callback for
the button does not run, probably because it's not technically visible. I
verified that the button callback works fine if the onBlur callback does
not call setState.

I worked around the issue by using a window.setTimout that calls setState
after 250ms.

  • Is this the right approach?
  • Or is this a bug in flux that all callbacks don't run?

My expectation is that the all callbacks would run and the setState calls
would be cummulative.

Thanks for any advice.


Reply to this email directly or view it on GitHub
#73.

from flux.

justin808 avatar justin808 commented on April 19, 2024

Oh! Sorry, I need to put this in the React repo. Late at night when I filed this.

from flux.

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.