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

docs: unsubscribe even listeners on unmount #340

Conversation

vonovak
Copy link
Contributor

@vonovak vonovak commented Oct 1, 2021

I "fixed" the docs so that event listeners are unregistered on unmount which makes a difference during development due to hot reloading - the listeners can get called multiple times if not handled properly, which can be confusing 😆

Copy link
Collaborator

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

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

@vonovak awesome, thank you for clarifying the doc!

@Naturalclar Naturalclar merged commit 0ff2161 into react-native-push-notification:master Oct 21, 2021
@vonovak vonovak deleted the docs/fix-event-subscription branch October 21, 2021 18:49
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

Successfully merging this pull request may close these issues.

None yet

2 participants