Skip to content

Conversation

@algv
Copy link

@algv algv commented Oct 25, 2017

No description provided.

payload: { user }
})

yield call(() => history.push('/people'))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

возьми push как AC из react-router-redux, сделай put

try {
const user = yield call([auth, auth.signInWithEmailAndPassword], payload.email, payload.password) // https://firebase.google.com/docs/reference/js/firebase.auth.Auth#signInWithEmailAndPassword

yield put({
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В общем случае все правильно, хотя нам достаточно onAuthStateChange

@@ -0,0 +1,52 @@
import {signUp, signUpSaga, SIGN_UP_START, SIGN_UP_SUCCESS,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошо, но в идеале можно еще и редюсер потестить

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants