You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now redux's listeners are synchronous, this means that for every dispatch call all the listeners will trigger, and if many happen at the same time then all the listeners will trigger that same amount of times
If for example there are many dispatch calls that trigger react DOM redraw it would be much better if it only happened once since it might save itself some extra computation
store.subscribe(()=>console.log('hello'))// this is completely made up, it would dispatch all these actions in a bulkstore.batch([(action1),(action2),
...
]);// 'hello'
Or maybe if we stack up dispatches and clear that stack in the next tick the results might be different
store.subscribe(()=>console.log('hello'))store.lazyDispatch(...)store.lazyDispatch(...)// async 'hello' log in the next tick
The text was updated successfully, but these errors were encountered:
Right now redux's listeners are synchronous, this means that for every dispatch call all the listeners will trigger, and if many happen at the same time then all the listeners will trigger that same amount of times
If for example there are many dispatch calls that trigger react DOM redraw it would be much better if it only happened once since it might save itself some extra computation
Or maybe if we stack up dispatches and clear that stack in the next tick the results might be different
The text was updated successfully, but these errors were encountered: