Update react-redux to 6.0.0-beta.2, enable react concurrent mode, use strict equality mapState checks

This commit is contained in:
Ken-Håvard Lieng 2018-11-09 08:11:01 +01:00
parent 04852cdf58
commit 9c9b05d479
11 changed files with 288 additions and 217 deletions

View file

@ -0,0 +1,13 @@
import { connect } from 'react-redux';
const strictEqual = (a, b) => a === b;
export default (mapState, mapDispatch) =>
connect(
mapState,
mapDispatch,
null,
{
areStatePropsEqual: strictEqual
}
);