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.
Best thing that ever happened to my career 👏🏽
I’m very happy I bought this. Didn’t fully grasp the fundamentals from Udemy courses I’ve been taking. I’m buying the Redux course immediately after I’m done with this. THANK YOU SOO MUCH