WIPgit status <Compose> Refactor; <Composer> ed.
This commit is contained in:
7
app/javascript/flavours/glitch/util/redux_helpers.js
Normal file
7
app/javascript/flavours/glitch/util/redux_helpers.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// Merges react-redux props.
|
||||
export function mergeProps (stateProps, dispatchProps, ownProps) {
|
||||
Object.assign({}, ownProps, {
|
||||
dispatch: Object.assign({}, dispatchProps, ownProps.dispatch || {}),
|
||||
state: Object.assign({}, stateProps, ownProps.state || {}),
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user