Skip to content

v4.0.0-beta.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@didierfranc didierfranc released this 02 Jul 18:36
· 78 commits to master since this release
  • This release allows you to make consecutive actions calls, with state always up to date
const Count = connect(({ count }) => ({ count }))(({ count }) => count)

class App extends Component {
  componentDidMount() {
    actions.increment()
    actions.increment()
    // <Count /> will display `2`
  }
  render() {
    return (
      <Provider>
        <Count />
      </Provider>
    )
  }
}

Watch it there