Cannot update a component while rendering a different component in react

后端 未结 0 2094
执笔经年
执笔经年 2020-12-04 02:32

in my react app i\'m using useContext to update some state by another component (i mean in custom hook). when i want to update the state i get this error:

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