How to skip running useEffect on first run is Strict mode?

前端 未结 0 397
予麋鹿
予麋鹿 2020-12-30 03:09

I have a custom hook that I use when I need to skip running of the useEffect function on a first call. This works like a charm in non Strict mode.

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