zeal-redux-utils
Advanced tools
Changelog
0.3.1 - 2017-05-12
createReducer
now allows the caller to specify a whitelist function that can bypass the flux standard action (FSA) check. Some external libraries dispatch actions that do not conform to the FSA spec and we don't want those to trigger the NonStandardAction
exception. The whitelist function should take an action and return true
if it should bypass the FSA check, or false if it should be checked. Use it as follows: createReducer(initialState, actionHandlers, { allowNonStandardActionIf: whitelistFunction })
. (#9)Changelog
0.3.0 - 2016-12-14
createReducer
. The check is performed only in development mode. Non-FSA actions raise a NonStandardAction
exception. See flux-standard-action for a definition of what is an FSA. (#6)nullAction
for use in reducer specs. A nullAction
is a flux-standard-action-compliant action that shouldn't match any of your normal actions. It can be used to initialize the state in a reducer spec. e.g const initialState = reducer(undefined, nullAction)
(#7)Changelog
0.2.0 - 2016-12-14
globalizeSelectors
for adapting selectors that work on a slice of the state tree to allow them to work on the entire state tree. See Globalizing Redux Selectors for more information. (#2, #5)