use-axios-client icon indicating copy to clipboard operation
use-axios-client copied to clipboard

Infinity data loading

Open SHrechko150 opened this issue 2 years ago • 0 comments

isMount reference not setting to true on mount and after unmount useBaseAxios hook in which case we get a bug related to infinity data loading. I think this will help:

useEffect(() => { isMounted.current = true; //<--- try to add this row return () => { cancel(); isMounted.current = false; }; }, []);

SHrechko150 avatar Sep 15 '22 11:09 SHrechko150