Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 654 Bytes


import batchedUpdatePlugin from 'fluxible-addons-react/batchedUpdatePlugin';

batchedUpdatePlugin is a Fluxible plugin that will batch React setState calls together when they are part of the same dispatch. This can improve performance as there will be fewer re-renders for components that listen to multiple stores that react to the same dispatch command.


The plugin is added to Fluxible immediately after instantiation as follows:

var app = new Fluxible();

This will wrap the actionContext.dispatch function with a call to React.addons.batchedUpdate.