3 ms·
I realized some time ago that the run loop inside Ember (aka Backburner) is really similar to Flux. In Flux, everything is powered by the dispatcher. Changes t
by lightblade 12y ago
I realized some time ago that the run loop inside Ember (aka Backburner) is really similar to Flux.
In Flux, everything is powered by the dispatcher. Changes to the store goes through dispatcher. All the stores changes that react to another store change needs to settle before re-rendering. This is almost exactly how to run loop works. The run loop is the dispatcher.
So in theory, we can just use Backburner to power a Flux app.
- spicyj 12y agoReact does a similar batching of updates to avoid unnecessary rerenders, but a critical piece of the Flux dispatcher is helping organize inter-store dependencies which (unless I'm missing something) neither Backburner nor React itself does: https://news.ycombinator.com/item?id=8248536 https://news.ycombinator.com/item?id=8248536