3.3.1 • Published 6 years ago
cape-redux v3.3.1
cape-redux
addListener(selector, store, onChange)- Trigger a call to onChange() when result of selector changes.createAction(type, payloadCreator)- Makes an action creator.createReducer(reducers, defaultState = {}, opts)- Send reducers obj where key is type and value is func with (state, payload) sig. Default opts{ actionPick: property('payload'), skipErrors: true, skipNoPayload: false }. This will skip over actions with errors but allow actions with no payload to be sent to the action type reducers. Can passisInvalidAction()in opts to add some custom checking.mapDispatchToProps(getActions)- getActions func is passed state. Result is passed to bindActionCreators.merge(object, [sources])- Creates a new object with the result of sources spread over object.noopAction(typeId)- Returns a function that will always return an the exact same object with a type prop set to typeId.fpMerge(source, object)- Curried. Object is 2nd arg.imSet(key, obj, value)- curried. Callsseton object withkeyandvaluearguments.set(key, obj, value)- curried. return new object with key set as value on obj. No array support.setIn(arrayPath, obj, value)- curried. Returns new objects created along path until value is set. Usessetinternally.thunkAction- Like createSelector but it builds and dispatches an action creator. To dispatch many actions return array from builder function.selectorAction(type, payloadSelector, metaSelector = noop)Uses thunkAction to create an action from selectors.thunkSelectorAction(actionSelector)A selector that returns an action object after it is sent state. Dispatch is called on action.
3.3.1
6 years ago
3.3.0
7 years ago
3.2.0
8 years ago
3.1.0
9 years ago
3.0.0
9 years ago
2.3.0
9 years ago
2.2.1
9 years ago
2.2.0
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.0
9 years ago
1.6.1
9 years ago
1.6.0
9 years ago
1.5.1
9 years ago
1.5.0
9 years ago
1.4.2
9 years ago
1.4.1
9 years ago
1.4.0
9 years ago
1.3.3
9 years ago
1.3.2
9 years ago
1.3.1
9 years ago
1.3.0
9 years ago
1.2.0
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago