Skip to content

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
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