Skip to content

Conversation

@lenaic
Copy link

@lenaic lenaic commented Nov 8, 2025

Summary:
With opacity being initialized to NaN for text attributes, not having the NaN check would mean adding the opacity prop to the Props 2.0 diff output even when it was unchanged and still set to NaN

Changelog: [Internal]

Differential Revision: D86577389

Nick Lefever added 2 commits November 7, 2025 18:17
Summary:

Compare the output from Props 1.5 with Props 2.0 to detect any missing props in the output coming from Props 2.0.

The comparison doesn't run for initial mounts due to Props 1.5 not using the default property values to generate a diff, which is obviously leading to more properties being in the Props 1.5 output that aren't necessary.

Changelog: [Internal]

Differential Revision: D86577390
Summary:
With `opacity` being initialized to NaN for text attributes, not having the NaN check would mean adding the `opacity` prop to the Props 2.0 diff output even when it was unchanged and still set to NaN

Changelog: [Internal]

Differential Revision: D86577389
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 8, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 8, 2025

@lenaic has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86577389.

lenaic pushed a commit to lenaic/react-native-macos that referenced this pull request Nov 8, 2025
Summary:

With `opacity` being initialized to NaN for text attributes, not having the NaN check would mean adding the `opacity` prop to the Props 2.0 diff output even when it was unchanged and still set to NaN

Changelog: [Internal]

Differential Revision: D86577389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants