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.
comments powered by
Learning React can be a struggle -- so many libraries and tools!
My advice? Ignore all of them :)
For a step-by-step approach, read my book Pure React.
Loved it! Very well written and put together. Love that you focused only on React. Wish I had stumbled onto your book first before I messed around with all those scary "boilerplate" projects.