markdalgleish / redial

Universal data fetching and route lifecycle management for React etc.
1.1k stars 42 forks source link

How I can do sequential requests? I mean nested requests #41

Closed victortomilin closed 3 years ago

victortomilin commented 7 years ago

Hi!

For example: I have made a one request and if request successfully done I should send additional request and when this request will be finished then SSR should work. How I can do that?

Thx.

ctrlplusb commented 7 years ago

Promise chains within a thunk action?

victortomilin commented 7 years ago

@ctrlplusb yep

idangozlan commented 7 years ago

try async waterfall

victortomilin commented 7 years ago

@idangozlan Thx u very much! async/await work for me in this case