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

How to clean up function in useEffect hook when component unmount #77

Open
Gnutyud opened this issue Feb 6, 2023 · 1 comment
Open
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@Gnutyud
Copy link

Gnutyud commented Feb 6, 2023

I have a problem that when component unmounted but the React app still call api https://content-fleetengine.googleapis.com/v1/providers to get trip info. How can i stop it calling ?

@Gnutyud Gnutyud added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 6, 2023
@wangela
Copy link
Member

wangela commented Feb 6, 2023

@Gnutyud Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants