Need to run a series of HTTP calls, and wait for them all to complete? Use
This won’t work:
Do this instead:
Run the promsies in order (not in parallel)
When you queue up promises like above, they all start at the same time. But what if you want them to run in the order you called them?
You can build up a chain of promises:
$q.when is used to kick off the chain with a resolved promise.
Learning React can be a struggle — so many libraries and tools!
My advice? Ignore all of them :)
For a step-by-step approach, check out my Pure React workshop.
Learn to think in React
- 90+ screencast lessons
- Full transcripts and closed captions
- All the code from the lessons
- Developer interviews
Dave Ceddia’s Pure React is a work of enormous clarity and depth. Hats off. I'm a React trainer in London and would thoroughly recommend this to all front end devs wanting to upskill or consolidate.