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

Simplify createInitialState interface #37069

Closed
wants to merge 1 commit into from

Conversation

sammy-SC
Copy link
Contributor

Summary:
changelog: [internal]

To create initial C++ state, nothing beside props is needed from ShadowNodeFragment and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

@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 fb-exported labels Apr 24, 2023
@facebook-github-bot
Copy link
Contributor

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

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: 8ec7f4d99dc2eba13e33ef249cf248bd81cf216c
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Apr 25, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,625,130 -104
android hermes armeabi-v7a 7,937,983 +22
android hermes x86 9,112,076 -228
android hermes x86_64 8,966,887 -123
android jsc arm64-v8a 9,189,170 -112
android jsc armeabi-v7a 8,379,482 +29
android jsc x86 9,247,475 -226
android jsc x86_64 9,505,920 -129

Base commit: 5ff19f0
Branch: main

@facebook-github-bot
Copy link
Contributor

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

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: a2993063b6c673be2356a1524cf51d8ce6ab63ed
@facebook-github-bot
Copy link
Contributor

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

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: aa03c86b6e18a7160f50e81d2afbcd8e76ea5277
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: a5c9b76294a74553b1867ce04ac2bf24e0cd9641
@facebook-github-bot
Copy link
Contributor

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

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: c7c90582fdf3eb2f874d8b0885d9d635eb02395b
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: 76dd3d2363329031ff37288b9a5a733682d3525f
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: 658bb18992f53fa8943bd6018aa300d23fc35404
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 26, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 2cda4f7.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: 81ab8eb3c57f6ff64aaed7c5b395555dce6b60b2
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Pull Request resolved: facebook#37069

changelog: [internal]

To create initial C++ state, nothing beside props is needed from `ShadowNodeFragment` and this diff removes it.

It makes creation of state easier as we will no longer need to check if props are nullptr.

Reviewed By: mdvacca

Differential Revision: D45183692

fbshipit-source-id: 81ab8eb3c57f6ff64aaed7c5b395555dce6b60b2
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.

3 participants