3 ms·
Fair as an escape hatch, and I don’t know your situation, but in a lot of cases I think that’s a smell indicating that you need fewer reducers. I totally under
by weeksie 7y ago
Fair as an escape hatch, and I don’t know your situation, but in a lot of cases I think that’s a smell indicating that you need fewer reducers.
I totally understand that there are legitimate reasons for things to end up that way, but it’s certainly something I’d want to avoid or make as rare as possible.
- 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.