When the response application starts, I have to retrieve the data from the remote API. Should I run this in the method of componentDidMountmy main component? Are there any other recommended options?
Also, does React help keep track of all outstanding network calls (i.e. unresolved Promises) and a way to cancel them if necessary? Or will it be considered the responsibility of the programmer, so will I need to write the code myself or use another library for it?
source
share