about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util/redux_helpers.js
blob: 3bc8bc86fbcafebe887cd2596ee9f26bc4e9698d (plain) (blame)
1
2
3
4
5
6
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 || {}),
  });
}