Skip to content

Instantly share code, notes, and snippets.

@KTruong008 KTruong008/epic.js
Created Oct 1, 2017

Embed
What would you like to do?
export const loginSuccessEpic = (
action$,
store
) => action$
.ofType(LOGIN_TYPES.SUCCESS)
.mergeMap(() => {
return Observable.from([
location.createRouteChangeAction(
LOCATION.USER_DASHBOARD
),
switchAuthenticatedFlag(true),
stopSubmit(FORM_NAMES.LOGIN)
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.