-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change call to apply when invoking ApiClient #4
Comments
Using |
OK I merged this, then had errors, then looked deeper into it, and can't get it. I'm not clear on what the difference between a "plain class" and what's happening now is. I'm not even sure what this context I should be passing in to apply, or why it'll help. I'll leave this open but unless someone can post a better explanation of the benefits and/or how to do it I'm leaving it out of 5.0.0 for now. |
Sorry for being out of communication for so long. I can look into the error The issue is the usual deal where you can't just use a reference to a The provided implementation of ApiClient does not have this problem because In particular, this kind of effect: call(apiClient.fetch, ...args) should change to this form: apply(apiClient, apiClient.fetch, ...args) On Thu, Aug 4, 2016, 2:44 AM Devin Howard [email protected] wrote:
|
Which in the current redux-saga can be written as call(apiClient, apiClient.fetch, ...args) if I'm not mistaken. Is this a breaking change? Either way, I'll make a pull request and leave it for you to review. Last time the saga tests broke so it may be a few tries to get it merged in. |
I'm not sure what this will accomplish, but it sounds good. @hallettj could you explain further?
The text was updated successfully, but these errors were encountered: