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

React Redux Form v1.1.0

Compare
Choose a tag to compare
@davidkpiano davidkpiano released this 03 Nov 14:13
· 595 commits to master since this release

Documentation Updates

Under the hood

  • Lots of code was refactored, simplified, and removed in RRF v1.1.0, without sacrificing any features or flexibility.
  • Included in these enhancements is a new intents system, which is a declarative way to describe secondary effects based on actions previously completed. For example, if you dispatch actions.focus(model), then the form reducer will:
    • update the .focus state of that field
    • add an intent that the actual control on the DOM should be focused

Then, the <Control> component can handle that intent, focus the DOM node, and clear the intent, so that it doesn't run again.

Bug fixes and enhancements

  • All proper propTypes added for <Fieldset> (not yet documented). #504
  • novalidate -> noValidate because, you know, React. #505
  • Field validation inside a <Form> now accurately takes into account mixed form and field validators, thanks to the new intent system. #513
  • Options for callback functions in actions.setFieldsValidity() (which were only being used internally, and not documented) are removed for simplicity. Intents are used instead.
  • Loading complex models (via actions.load(model, {complex: 'stuff'})) now properly updates the field and subField states. #516
  • The in operator is now avoided for non object types, when determining how to retrieve a substate from a (potentially) immutable object. #514
  • Icepick doesn't like it when you try to associate a value via an empty path. Fixed that. #512