You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know I've commented on another issue before, but could you show how one could make concurrent calls to the same method?
You mentioned using request, but how does one update state with request responses?
Thanks very much for your time
The text was updated successfully, but these errors were encountered:
I have a component A that render two times a component B. In the component B, in its componentDidMount method, I make a POST request by redux-api. The problem is that both components get the same response, that one that resolves first.
Am I doing anything wrong? How can I fix it?
Hi @agustin-vieta
There are different ways to solve your problem. First of all this lib is named "redux-api" and the best way to keep data is not to use component state and replace it with redux store.
Request e.g. you can call in component A, and components B will only get data from store.
Hello,
I know I've commented on another issue before, but could you show how one could make concurrent calls to the same method?
You mentioned using request, but how does one update state with request responses?
Thanks very much for your time
The text was updated successfully, but these errors were encountered: