Here is where should be the states change in response to async callback result. There is no need to be concerned with memory leaks or race conditions.
Here is possible to add cleanup code (like removing subscriptions). Don't change states here!
Generated using TypeDoc
This callback is executed whenever the
asyncFunctionthrows or rejects an error. It will not be executed if the promise is canceled, namely when the component is unmounted during theasyncFunctionexecution. So it is safe to change states within this callback.