Making the store object as the this scope in the dispatcher callback.
Adding an initialState parameter for Flaxs object (useful for server side initialState).
Exporting createStore function from Flaxs.js to allow add the initialState parameter to the global instance.
Also adding an initialState parameter for flaxs.createStore() factory.
Adding the emitChangeIfStoreChanged method to the Store class to be used in the dispatcher callback.
@felix-d @tomzmtl these changes will make ES5 integration more powerful without many refactoring (only changing the imports of Flux in common/flux/index.js).
I'll create a PR for ES5 to stop using the tar.gz and start pointing at this repo (eventually we need to change to a different upstream).
Changes:
this
scope in the dispatcher callback.initialState
parameter for Flaxs object (useful for server side initialState).createStore
function from Flaxs.js to allow add theinitialState
parameter to the global instance.initialState
parameter forflaxs.createStore()
factory.emitChangeIfStoreChanged
method to the Store class to be used in the dispatcher callback.@felix-d @tomzmtl these changes will make ES5 integration more powerful without many refactoring (only changing the imports of Flux in
common/flux/index.js
).I'll create a PR for ES5 to stop using the tar.gz and start pointing at this repo (eventually we need to change to a different upstream).