Update react-redux to 6.0.0-beta.2, enable react concurrent mode, use strict equality mapState checks
This commit is contained in:
parent
04852cdf58
commit
9c9b05d479
11 changed files with 288 additions and 217 deletions
13
client/src/js/utils/connect.js
Normal file
13
client/src/js/utils/connect.js
Normal 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
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue