Breaking Changes Since 3.0.0-alpha
This release is identical to 3.0.0-alpha.
If you’re already using it, you don’t need to change anything.
Breaking Changes Since 2.x
Now the map functions (
mergeProps) are not called until React starts to render the
connect()ed components. Previously the map functions where called immediately when store changed which could cause weird edge case bugs when the
ownProps parameter was a derivative of the state. The state from which it was derivative of was a different version than what was passed as the
stateparameter. In some cases when using nested
connect()ed components the states can be incompatible with each other and cause very confusing bugs in user code.
Unfortunately the state stays consistent only when store dispatches are called in batches ie. from DOM handlers or manually from
redux-batched-updates middleware can be used to force batching for all dispatches. Also React plans to move on batching by default so this will become obsolete in future.
If you're interested in the details, feel free to check out: