Skip to content

Conversation

@momonomonoto
Copy link

hw5

const auth = firebase.auth()
const callback = (user) => emmit({user})
auth.onAuthStateChanged(callback)
return () => {}
Copy link
Owner

Choose a reason for hiding this comment

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

зачем ты возвращаешь пустую функцию? Такое тебя в результате приведет к неприятным багам. auth.onAuthStateChanged возвращает нужный колбек

let task
while (true) {
const action = yield take(SIGN_IN_REQUEST)
const {payload} = yield take(SIGN_IN_REQUEST)
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