This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
Releases: atomixinteractions/optice
Releases · atomixinteractions/optice
v0.2
BREAKING CHANGES
- dc15a21 feat(execute): change execute format. remove
getState
andsetState
Before
const command = (a, b) => ({ getState, setState, updateState, readState, execute }) => (
a + b + readState(someLens)
)
store.execute(command(1, 2))
Now
const command = (a, b) => ({ readState, updateState, execute }) => (
a + b + readState(someLens)
)
store.execute(command, 1, 2)
v0.1.0
First release
💡