Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

v1.9.0

Compare
Choose a tag to compare
@davidkpiano davidkpiano released this 06 Apr 16:00
· 347 commits to master since this release

Enhancements

<LocalForm> now provides a thunk-enabled dispatcher for getDispatch! This means you can pass in action thunk creators, like:

// in render():
<LocalForm
  model="user"
  getDispatch={(dispatch) => this.formDispatch = dispatch}
/>

// anywhere in the same component:
this.formDispatch(actions.merge('user', {
  name: 'Jared',
  state: 'Pennsylvania'
});

Very little code was required to make this happen, so don't worry, it doesn't create a dependency on redux-thunk -- it works the exact same way, though.

Fixes

  • HTML validation was fixed in components defined in <LocalForm> components. #734