My custom React hook is being called in an infinite loop

后端 未结 0 1439
鱼传尺愫
鱼传尺愫 2021-02-04 01:58

I wrote a custom hook called useApi - I am calling it within Main.tsx. It is being called FROM Main.tsx in an infinite loop. I know this because I put a console.log message righ

相关标签:
回答
  • 消灭零回复
提交回复
热议问题