Skip to content

A Higher Order Component using react-redux to keep form state in a Redux store

License

Notifications You must be signed in to change notification settings

fabrictech/redux-form

 
 

Repository files navigation

@fabrictech/redux-form

We have forked this dependency as part of our React 16 upgrade. Originally, we attempted to just upgrade to the latest 6.x minor (6.8.0, at time of writing), but this was unsuccesful. The minimum version that supports React 16 is 6.6.3, but we weren't able to get to that either.

The following breaking changes (made in patch versions) are preventing us from upgrading. Note that there could well be more - there are a lot of versions between 6.0.2 and 6.6.3.

6.1.0 -> 6.1.1: Numeric Validation Broken

The release notes say

Fixed bug that did not allow decimal points to be entered. #1946 There is a slight chance that this could break an implementation that was assuming data to be a Number. If you absolutely want your value to be stored as a Number, you will need to use the parse and format lifecycle hooks.

This breaks inputs like the premium height input. We were able to work around it by modifying our parse hook, but rolling it out would require QAing all numeric inputs, as this could conflict with or otherwise brick our masking.

6.2.0 -> 6.2.1: Formgenie placeholder labels stop showing up.

Didn't find an exact cause.

Changes in Fork

  • migrated from React.propTypes to prop-types (this was compared against the changes made to redux-form in 6.6.3).
  • peer dependencies updated to allow React 16
  • dependencies pinned to the versions we had in Cashmere's yarn.lock.
  • added a yarn.lock (mostly by accident)

redux-form


NPM Version NPM Downloads Build Status codecov.io PayPal donate button Twitter URL Patreon

redux-form works with React Redux to enable an html form in React to use Redux to store all of its state.

Installation

npm install --save redux-form

Documentation

Videos

About

A Higher Order Component using react-redux to keep form state in a Redux store

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Shell 0.1%