-
Notifications
You must be signed in to change notification settings - Fork 88
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
Asynchnous transformer #90
Comments
Transformer receive data, not promise. https://github.com/lexich/redux-api/blob/master/src/adapters/fetch.js If you want custom adapter for endpoint you should use
|
But when we using following suggested adapter:
Transformer receives Response |
It's wrong realization of adapter. |
I think documentation should be corrected then. To avoid confusing of future users. |
Need to fix documentation. |
Hello, trying to work with redux-api using whatwg fetch polyfill as adapter.
The issue is that build-in transformer functionality provides synchronous interface.
When we deal with whatwg fetch, response body (json in my case) is being obtained via promise, so there is no elegant way to obtain it within transformer, modify and return in a transformed form.
The text was updated successfully, but these errors were encountered: