How To Stop API Request From Looping In The Network Tab

So, currently, i’m working with an API that gets a list of accounts and each account can be deleted. So, In my code, I called the function to get all accounts in a useEFfect passing in the account details stateThis is a screen shot of my code as a dependency. If i now go to my browser and check the network tab I noticed the frequent request of the endpoint That is a screen shot of the loop in the network tab. Please I want to know why that is happening and how it can be solved.

There is a screen shot of what I tried