Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinity data loading #134

Open
SHrechko150 opened this issue Sep 15, 2022 · 0 comments
Open

Infinity data loading #134

SHrechko150 opened this issue Sep 15, 2022 · 0 comments

Comments

@SHrechko150
Copy link

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;
};
}, []);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant