UNPKG

@shopgate/pwa-common

Version:

Common library for the Shopgate Connect PWA.

15 lines (14 loc) 413 B
import { ACTION_PUSH } from '@virtuous/conductor'; import { navigate } from "../../action-creators/router"; import { mutable } from "../../helpers/redux"; /** * @mixes {MutableFunction} * @param {Object} params The history params. * @return {Function} The dispatched action. */ export const historyPush = mutable(params => dispatch => { dispatch(navigate({ ...params, action: ACTION_PUSH })); });