Closed ng-hai closed 7 years ago
Hi @ng-hai — it's a way to pass the this
context to firebaseAuth.signInWithPopup
.
https://github.com/redux-saga/redux-saga/blob/master/docs/api/README.md#callcontext-fn-args
Thank @r-park, I just thought that it would be the same with calling axios
method like yield call(axios.post, someParameters)
.
As your answer, I can rewrite the above method as yield call([axios, axios.post], someParameters)
, do I right?
That should work.
Could you explain to me the 10th line of code? I can't figure out why we must use an array here. Thank you.