use-axios-client
use-axios-client copied to clipboard
Infinity data loading
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; }; }, []);