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: Properly clean up RCTDevLoadingView on hide #2201

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

Saadnajmi
Copy link
Collaborator

Summary:

Fixes #2183

This PR fixes two issues with RCTDevLoadingView:

  • In the macOS implementation of RCTDevLoadingView, we forgot to do some cleanup of instance variables on hide, which was causing the loading view to stick around.

  • The NSWindow that RCTDevLoadingView used would return false for canBecomeKeyWindow. Somewhere internal to Appkit, makeKeyWindow was called, would fail, and produce a warning in the Xcode console. By making the window an NSPanel instead, we can avoid this issue.

Test Plan:

Loaded RNTester a couple of times and didn't observe an issue with the loading view sticking around.

@Saadnajmi Saadnajmi merged commit 704b60c into microsoft:main Sep 26, 2024
9 of 12 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.

[0.75] Bundle loading banner randomly gets stuck
2 participants