Can you use dispatch as a useEffect dependency?

后端 未结 0 676
攒了一身酷
攒了一身酷 2021-02-06 03:11

I want to trigger a dispatch on my useReducer function on the initial render. If I put it inside useEffect, a warning error pops up. I\'ve seen conflicting information on whethe

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