This repository was archived by the owner on Sep 16, 2020. It is now read-only.
v3 🐲
Major changes
f62c9af Changed format of plain action (PR #19)
Before that change, arguments of action creator passed to payload
:
const { actions } = createSymbiote({ value: 0 }, {
example: (state, a, b) => ({ value: state.value + a + b }),
})
actions.example(5, 6)
// { type: 'example', payload: [5, 6] }
Now payload
contains only first argument. All arguments passed to "symbiote-payload"
:
actions.example(5, 6)
// { type: 'example', payload: 5, 'symbiote-payload': [5, 6] }
That change can ease interop with other libraries, ex. redux-observable. See discussion in #14
dc3ff3c Code was full rewrited
All library code was rewrited without changing API.