Skip to content

Commit 74c3d9d

Browse files
committed
move props in identityMerge to front to allow override by slice and actionCreators, remove from DecoratedComponent render
1 parent df18c6d commit 74c3d9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/createConnectDecorator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const emptySelector = () => ({});
1010

1111
const emptyBinder = () => ({});
1212

13-
const identityMerge = (slice, actionsCreators, props) => ({...slice, ...actionsCreators, ...props});
13+
const identityMerge = (slice, actionsCreators, props) => ({ ...props, ...slice, ...actionsCreators});
1414

1515

1616
export default function createConnectDecorator(React) {
@@ -115,7 +115,7 @@ export default function createConnectDecorator(React) {
115115
}
116116

117117
render() {
118-
return <DecoratedComponent {...this.props} {...this.merge()} />;
118+
return <DecoratedComponent {...this.merge()} />;
119119
}
120120
};
121121
};

0 commit comments

Comments
 (0)