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

fix: Remove dangling global reference to ScreenModule #2494

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

lukmccall
Copy link
Member

Description

Removes a dangling global reference to the ScreenModule.

Changes

When the application reloads, nativeInstall is called, which overwrites the reference to globalThis without deleting it. This PR deletes the reference before creating a new one.

Test code and steps to reproduce

I've tested it in a new project created using expo (SDK 52) and with fabric turn on.

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@kkafar kkafar merged commit b84fd63 into software-mansion:main Nov 12, 2024
4 checks passed
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