Skip to content

v5.0.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@timdorr timdorr released this 30 Nov 02:38
· 1073 commits to master since this release
npm install --save react-redux@next
# or
yarn add react-redux@next

See the 5.0.0-beta.2 release notes if you're new to the 5.0 versions.

The big change for this version is a workaround for a cursor position bug in controlled input fields in React 15 or lower. See #525 for the gory details. There is a workaround in place that defaults to enabled, but will slightly reduce some of the performance gains of 5.0 (it is still faster, just not as fast). The underlying bug will be fixed in React 16 and we will default to disabling our workaround in the next release (scheduled for 5.1.0).

If you have no connected/controlled form inputs in your application, you can turn it off for all connected components like so:

// Before you ReactDOM.render()
import { connect } from 'react-redux'
connect.setDefaultReact15CompatibilityMode(false)

You can also pass a option to connect():

connect(mapStateToProps, mapDispatchToProps, mergeProps, { react15CompatibilityMode: false })

That's it! We should be pushing out a final release this weekend.

Changes

  • Fix error from clear() called during notify() (#517 by @appden)
  • Shows more helpful error when connect() is passed invalid args. (#554 by @jimbolla)
  • Adds react15CompatibilityMode setting (#540 by @jimbolla)