3 ms·
...so how would you handle the case I described above, where a user can trigger the same ajax with different parameters, fast enough that multiple calls can ret
by Izkata 7y ago
...so how would you handle the case I described above, where a user can trigger the same ajax with different parameters, fast enough that multiple calls can return in the wrong order (due to network latency, server load, the second one being cached, etc)?
- weeksie 7y agoI wouldn't use separate reducers for the ajax results and the user's data. Just pass the necessary data from your ajax call along in your action payload and perform your data accounting in the user reducer.