Next ... I need to make a hierarchy of requests that depend on each other.
I made the whole structure, but when I run the code they are solved asynchronously, without waiting for a request to be solved to follow the code just below.
Here's how the structure is:
This is the requisition where it is done
Thisisthemethodintheservice:
AfterSyncDevicesstartstheRequisitionHierarchy:
And after fetchHeaders there are several others like SyncDevices, one depending on the other and being solved one after the other. But I need to resolve the TryRecconectAccount function because by having its response I can remove the loading on the screen.
If anyone has any idea what I can do ... Thanks