Skip to content

Conversation

Saadnajmi
Copy link
Collaborator

Summary:

RCTUILabel doesn't like it if we set message to nil, which we accidentally did by loading our viewController into a window (which calls viewDidLoad, which creates our label and sets message) before we have set our property. Simple fix to call code in the right order.

Test Plan:

image

@Saadnajmi Saadnajmi requested a review from a team as a code owner July 31, 2025 22:58
@Saadnajmi Saadnajmi merged commit c4b7586 into microsoft:main Aug 1, 2025
21 checks passed
@Saadnajmi Saadnajmi deleted the follouwp branch August 1, 2025 00:39
Saadnajmi added a commit to Saadnajmi/react-native-macos that referenced this pull request Aug 1, 2025
…microsoft#2594)

## Summary:

RCTUILabel doesn't like it if we set message to nil, which we
accidentally did by loading our viewController into a window (which
calls viewDidLoad, which creates our label and sets message) before we
have set our property. Simple fix to call code in the right order.

## Test Plan:

<img width="1392" height="860" alt="image"
src="https://github.com/user-attachments/assets/c6158b2c-4f8f-4348-9eb0-e863ec72a9e1"
/>
Saadnajmi added a commit to Saadnajmi/react-native-macos that referenced this pull request Aug 1, 2025
…microsoft#2594)

## Summary:

RCTUILabel doesn't like it if we set message to nil, which we
accidentally did by loading our viewController into a window (which
calls viewDidLoad, which creates our label and sets message) before we
have set our property. Simple fix to call code in the right order.

## Test Plan:

<img width="1392" height="860" alt="image"
src="https://github.com/user-attachments/assets/c6158b2c-4f8f-4348-9eb0-e863ec72a9e1"
/>
Saadnajmi added a commit to Saadnajmi/react-native-macos that referenced this pull request Aug 1, 2025
…microsoft#2594)

## Summary:

RCTUILabel doesn't like it if we set message to nil, which we
accidentally did by loading our viewController into a window (which
calls viewDidLoad, which creates our label and sets message) before we
have set our property. Simple fix to call code in the right order.

## Test Plan:

<img width="1392" height="860" alt="image"
src="https://github.com/user-attachments/assets/c6158b2c-4f8f-4348-9eb0-e863ec72a9e1"
/>
Saadnajmi added a commit to Saadnajmi/react-native-macos that referenced this pull request Aug 1, 2025
…microsoft#2594)

## Summary:

RCTUILabel doesn't like it if we set message to nil, which we
accidentally did by loading our viewController into a window (which
calls viewDidLoad, which creates our label and sets message) before we
have set our property. Simple fix to call code in the right order.

## Test Plan:

<img width="1392" height="860" alt="image"
src="https://github.com/user-attachments/assets/c6158b2c-4f8f-4348-9eb0-e863ec72a9e1"
/>
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