function mapDispatchToProps(dispatch, props) {
	const resolvedActions = {};
	getOnProps(props).forEach(name => {
		resolvedActions[name] = (event, data, context) => {
			let action = props[name];
			if (typeof action === 'string') {
				action = getActionObject(context, action, event, data);
			}
			dispatch(action);
		};
	});
	return { ...props, ...resolvedActions };
}
/**
 * create a map dispatchable action function expecting event object, props, and context information
 * merge this map with non event properties
 * @param  {Function} dispatch the dispatch function
 * @param  {object} props    props object containing maybe on(event) with string
 *                           or action creator function]
 * @return {object}          the connected object
 * @throws if an action is unknown in configuration, throw
 */
create a map dispatchable action function expecting event object, props, and context information
merge this map with non event properties
@param  {Function} dispatch the dispatch function
@param  {object} props    props object containing maybe on(event) with string
or action creator function]
@return {object}          the connected object
@throws if an action is unknown in configuration, throw
create a map dispatchable action function expecting event object props and context information merge this map with non event properties @param { Function } dispatch the dispatch function @param { object } props props object containing maybe on ( event ) with string or action creator function ] @return { object } the connected object @throws if an action is unknown in configuration throw
function mapDispatchToProps(dispatch, props) {
	const resolvedActions = {};
	getOnProps(props).forEach(name => {
		resolvedActions[name] = (event, data, context) => {
			let action = props[name];
			if (typeof action === 'string') {
				action = getActionObject(context, action, event, data);
			}
			dispatch(action);
		};
	});
	return { ...props, ...resolvedActions };
}
function mapDispatchToProps ( dispatch , props ) { const resolvedActions = { } ; getOnProps ( props ) . forEach ( name => { resolvedActions [ name ] = ( event , data , context ) => { let action = props [ name ] ; if ( typeof action === 'string' ) { action = getActionObject ( context , action , event , data ) ; } dispatch ( action ) ; } ; } ) ; return { ... props , ... resolvedActions } ; }
create a map dispatchable action function expecting event object, props, and context information
 merge this map with non event properties
 @param  {Function} dispatch the dispatch function
 @param  {object} props    props object containing maybe on(event) with string
                           or action creator function]
 @return {object}          the connected object
 @throws if an action is unknown in configuration, throw
create a map dispatchable action function expecting event object props and context information merge this map with non event properties @param { Function } dispatch the dispatch function @param { object } props props object containing maybe on ( event ) with string or action creator function ] @return { object } the connected object @throws if an action is unknown in configuration throw