Theres an issue on this line `responses[response.id] = response.data;` This array never gets cleared.