News for hackers. Stuff that matters.
Re:Why is setState asynchronous? by nawgszy on Thursday January 25, 2018 @01:31PM (#16233223)
You can also ignore React's built-in 'state' object and just store stuff directly in variables using MobX, which will force update components for you.

That said, it is best used as you describe it: a store that holds all the application state and manages API requests, and then any time it updates, any components observing this store will be forceUpdated

There are no comments on this comment yet.