kea-localstorage
Advanced tools
Changelog
3.1.0 - 2022-12-13
logic.props
mutable, and store props input immutably in logic.lastProps
. This fixes a bug:const propValues = []
const logic = kea([
actions({ doStuff: true }),
listeners(({ props }) => ({
doStuff: () => {
propValues.push(props.value)
},
})),
])
logic({ value: 0 }).mount()
logic({ value: 1 }).actions.doStuff()
logic({ value: 2 }).actions.doStuff()
Previously propValues
would contain [0, 0]
, but now it contains [1, 2]
.
Changelog
3.0.0 - 2022-05-12