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

Adds removeListener handler to with-electron-typescript example. #36323

Merged

Conversation

manovotny
Copy link
Contributor

Without removing the listener in useEffect, the home / index page will keep adding a new listener each time you come back to the home page.

CleanShot 2022-04-20 at 15 38 44

@ijjk ijjk added the examples Issue/PR related to examples label Apr 20, 2022
Copy link
Member

@ijjk ijjk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@kodiakhq kodiakhq bot merged commit 52fefb1 into vercel:canary Apr 20, 2022
@manovotny manovotny deleted the with-electron-typescript-remove-listener branch April 20, 2022 20:59
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants