Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

v0.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@sergeysova sergeysova released this 05 Jun 00:45
· 2 commits to master since this release

BREAKING CHANGES

  • dc15a21 feat(execute): change execute format. remove getState and setState

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)