is it possible to dispatch function when react component is unmount ? (React functional componet)

前端 未结 0 840
慢半拍i
慢半拍i 2020-12-02 04:08

Hi I\'m making some function which call api and save that value in the state, and then it should dispatch when user leave the component. so I tried to use react useEffect ho

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