how to execute requests one by one in a useEffect
I have useEffect that executes the request when changing dependences (department and two dates field).
I have useEffect that executes the request when changing dependences (department and two dates field).