Alexey Efremov

Results 47 comments of Alexey Efremov

I've realized the same helper in my project 👍

Hi @IronSean . Of cause redux-api was written as very customisable and very thin wrapper around redux and ajax providers like fetch api. And it's right way to write your...

Hi @thenewguy I think that you use it right way. Not clear but working just now

Hello @dagda1 I think that the best way to write your own adapter. But there is hook [responseHandler](https://github.com/lexich/redux-api/blob/master/docs/DOCS.md#responsehandler) but it has very little information about response.

Hi @jakeaaron Very interesting question. I think that at this moment postfetch is only way.

But it's good feature request

There is another way. You can use https://github.com/lexich/redux-api/blob/master/docs/DOCS.md#responsehandler and implement here retry logic

Yes responsehandler is bad idea in this case. But you can write custom adapter and you'll have access to request properties.

1. Yes, postfetch called only on success. 2. I didn't understand, what's you mean, maybe example?

Hello @divan you can't update state concurrently. In you case post request return poor json response like ` { status: "success" }` but for redux-api it's new state. You should...