1componentWillUnmount() {
2 // fix Warning: Can't perform a React state update on an unmounted component
3 this.setState = (state,callback)=>{
4 return;
5 };
6}
7
1You just need to add an AbortController in order to get rid of this error,
2Checkout the netninja's tutorial below from youtube:
3
4Visit https://www.youtube.com/watch?v=aKOQtGLT-Yk&list=PL4cUxeGkcC9gZD-Tvwfod2gaISzfRiP9d&index=24