Repository navigation
Correct the default errata in the YGConfigSetErrata comment (#2141) - #60547
Merged
Merged
Conversation
|
@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D135541201. |
…2141) Differential Revision: https://www.internalfb.com/diff/D135541201 Summary: Why === The comment on `YGConfigSetErrata` in `yoga/YGConfig.h` says "By default Yoga will prioritize W3C conformance". A new config has had `YGErrataMinSizeUndefinedInsteadOfAuto` set since react#1968 and `YGErrataFlexFirstPassUsesRunningTotals` since react#2021 (`errata_` in `yoga/config/Config.h`), so a reader who wants conformant layout and trusts the comment does not clear them. react#2116 corrected the same statement on the website's configuring page. How === The comment now says that a new config has some errata set and where to find them, without listing them: two open changes each add another default erratum, and a list here would go stale as the old sentence did. It also says that `YGConfigSetErrata` replaces the whole set. The old example, `YGConfigSetErrata(config, YGErrataStretchFlexBasis)`, reads as adding one erratum but clears the defaults, so the new example combines the erratum with `YGConfigGetErrata(config)`. Test Plan ========= A comment-only change: `cmake --build tests/build` compiles and `yarn format-check` passes. No image: there is no layout or structure to show. Changelog: [Internal] Signed-off-by: James Ide <ide@expo.dev>
javache
force-pushed
the
export-D135541201
branch
from
December 4, 2026 17:23
8bb218d to
e5f682e
Compare
Collaborator
|
This pull request was successfully merged by @javache in 5b77b40 When will my fix make it into a release? | How to file a pick request? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Differential Revision: https://www.internalfb.com/diff/D135541201
Summary:
Why
The comment on
YGConfigSetErratainyoga/YGConfig.hsays "By default Yoga will prioritize W3C conformance". A new config has hadYGErrataMinSizeUndefinedInsteadOfAutoset since #1968 andYGErrataFlexFirstPassUsesRunningTotalssince #2021 (errata_inyoga/config/Config.h), so a reader who wants conformant layout and trusts the comment does not clear them. #2116 corrected the same statement on the website's configuring page.How
The comment now says that a new config has some errata set and where to find them, without listing them: two open changes each add another default erratum, and a list here would go stale as the old sentence did. It also says that
YGConfigSetErratareplaces the whole set. The old example,YGConfigSetErrata(config, YGErrataStretchFlexBasis), reads as adding one erratum but clears the defaults, so the new example combines the erratum withYGConfigGetErrata(config).Test Plan
A comment-only change:
cmake --build tests/buildcompiles andyarn format-checkpasses. No image: there is no layout or structure to show.Changelog: [Internal]
Signed-off-by: James Ide ide@expo.dev