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 state as a dependency. If i now go to my browser and check the network tab I noticed the frequent request of the endpoint . Please I want to know why that is happening and how it can be solved.
There is a screen shot of what I tried