Ideally, data proxy instances should not send simultaneous requests to the server for the same data. So, each data proxy instance should wait for the ongoing request to send another one. Otherwise, in some cases, we may send duplicate requests for the same data.
It may be better to write a generic function, or some utility class like a global data request manager, to be used by all proxy classes.
Ideally, data proxy instances should not send simultaneous requests to the server for the same data. So, each data proxy instance should wait for the ongoing request to send another one. Otherwise, in some cases, we may send duplicate requests for the same data.
It may be better to write a generic function, or some utility class like a global data request manager, to be used by all proxy classes.