React native: How to prevent memory leak caused by updating state on unmounted component after a getting an api response?

后端 未结 0 882
醉话见心
醉话见心 2020-12-14 16:27

Is this actually causing memory leaks on the react-native App?

I found a way to prevent the state update on API response. By using useRef like below

co         


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