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

Cleanup YGNode for explicit per-node config #1249

Closed
wants to merge 1 commit into from

Conversation

NickGerleman
Copy link
Contributor

Summary:
Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Differential Revision: D45133644

@facebook-github-bot
Copy link
Contributor

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

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

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

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 25, 2023
Summary:
X-link: facebook/litho#941

X-link: facebook/yoga#1249

Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133644

fbshipit-source-id: 46b2bf1dea86e10ea96a51e1501e95b945a3c271
NickGerleman added a commit to NickGerleman/litho that referenced this pull request Apr 25, 2023
Summary:
X-link: facebook/react-native#36989

Pull Request resolved: facebook#941

X-link: facebook/yoga#1249

Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133644

fbshipit-source-id: 3455739e33be3d81cb6e64ca885e9e5695391039
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#36989

X-link: facebook/litho#941

X-link: facebook/yoga#1249

Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133644

fbshipit-source-id: 4fda35f098748cea0003572dd3fc254844e1d18d
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Apr 25, 2023
Summary:
X-link: facebook/react-native#36989

X-link: facebook/litho#941

Pull Request resolved: facebook#1249

Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133644

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

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

Summary:
X-link: facebook/react-native#36989

X-link: facebook/litho#941

Pull Request resolved: facebook#1249

Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133644

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

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

NickGerleman added a commit to NickGerleman/litho that referenced this pull request Apr 25, 2023
Summary:
X-link: facebook/react-native#36989

Pull Request resolved: facebook#941

X-link: facebook/yoga#1249

Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133644

fbshipit-source-id: f5f4b526660faaca17bd9d8579d2c8bfb366b141
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#36989

X-link: facebook/litho#941

X-link: facebook/yoga#1249

Cleans up some of the changes to UseWebDefaults that were made in the interest of moving it outside of YGConfig. It still exists in YGConfig, but also exists on the node.

We also assert on null config, or when someone tries to change UseWebDefaults after creating a node (since right now YGStyle does not know the difference between unset vs set explicitly to what would normally be default).

Removes a peculiar constructor which was added to avoid config setting.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133644

fbshipit-source-id: f22565a348a5a479bf18b53f0f9d820f905c054c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants