Changelog
2.1.1 - 2020-06-14
() => ({ ... })
to actions
, reducers
, etc if there's nothing you want from the logic.
Just pass {}
instead.kea({
selectors: {
doubleCounter: [(selectors) => [selectors.counter], (counter) => counter * 2],
},
})
previousState
as their 4th argument.
You can use selectors (selectors.myData(previousState)
) to get the any value as it was before the action was dispatched.Changelog
2.0.1 - 2020-06-05