Skip to content

Conversation

@javache
Copy link
Member

@javache javache commented Jul 9, 2024

Summary:
When React diffs props, it can can short-circuit nested objects if their object identity hasn't changed. Whenever we use flattenStyle we prevent this optimization from taking place.

Changelog: [Internal]

Differential Revision: D59518281

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jul 9, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59518281

@analysis-bot
Copy link

analysis-bot commented Jul 9, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 21,300,464 -34
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 24,497,477 +8
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: ef2e941
Branch: main

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59518281

javache added a commit to javache/react-native that referenced this pull request Jul 9, 2024
Summary:
Pull Request resolved: facebook#45345

When React diffs props, it can can short-circuit nested objects if their object identity hasn't changed. Whenever we use `flattenStyle` we prevent this optimization from taking place.

Changelog: [Internal]

Differential Revision: D59518281
@javache javache force-pushed the export-D59518281 branch from 75ac9ce to fdff592 Compare July 9, 2024 17:47
Summary:
Pull Request resolved: facebook#45345

When React diffs props, it can can short-circuit nested objects if their object identity hasn't changed. Whenever we use `flattenStyle` we prevent this optimization from taking place.

Changelog: [Internal]

Reviewed By: dmytrorykun

Differential Revision: D59518281
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59518281

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 12, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d9d638c.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @javache in d9d638c

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D59518281 branch August 13, 2024 09:24
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 Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants