React — Using functions from the ContextAPI in the useEffect hooks has missing dependencies warning

前端 未结 0 1312
我寻月下人不归
我寻月下人不归 2020-12-15 04:15

I am using the react Context to store some global states and functions. However, when I use a function defined in the context inside a useEffect hook, it causes a warning: &

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