Answer:
Michael Lustig - halfjew22@gmail.com

Michael Lustig - halfjew22@gmail.com @technoplato

Location:
Florida
Joined:
Nov 30, 2018

Answer:

Publish Date: Aug 23 '20
1 0

In redux-saga, the equivalent of the above example would be

export function* loginSaga() {
  while(true) {
    const { user, pass } = yield take(LOGIN_REQUEST)
    try {
      let { data } = yield call(request.post, '/login', { user, pass });
      yield fork(loadUserData, data.uid);
      yield put({ type: LOGIN_SUCCESS, data });
    } catch(error) {

Comments 0 total

    Add comment