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

[android] implement invalidate() on WebSocketModule to match iOS #15

Open
wants to merge 2 commits into
base: 0.66.4-discord-1
Choose a base branch
from

Conversation

nealmanaktola
Copy link

When the react native bridge reloads, invalidate is called on all the modules. On iOS, this cleanup is already implemented

https://github.com/facebook/react-native/blob/main/React/CoreModules/RCTWebSocketModule.mm#L54

I'll create a PR upstream as well, not sure why this wasn't already implemented.

For our cases, this is not really required, but it's nice that during development in case the bridge reloads, you'd leave the activity/VC and won't end up in a weird state.

@github-actions
Copy link

This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 28, 2022
@donaldchen
Copy link

@nealmanaktola , I've forgotten some context around this PR. Did we decide in chat anywhere that this wasn't necessary anymore?

@github-actions github-actions bot removed the Stale label Nov 29, 2022
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.

2 participants