Mastering Development

React Rest Call Infinite Loop Using Hooks

I am noticing that my component is stuck in an infinite loop. It keeps making the same rest call. It is my understanding that useEffect hooks work similar to ComponentRender and ComponentUpdate lifecycle functions. Also, I think what is happening is this but not able to fix it: On render – > API called -> […]