11 lines
328 B
JavaScript
11 lines
328 B
JavaScript
import { types } from '../../common/app/redux';
|
|
import { ofType } from 'redux-epic';
|
|
|
|
export default function hardGoToSaga(actions, { getState }, { history }) {
|
|
return actions::ofType(types.hardGoTo)
|
|
.map(({ payload = '/settings' }) => {
|
|
history.pushState(history.state, null, payload);
|
|
return null;
|
|
});
|
|
}
|