镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Make the default configuration constexpr - #2050

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
javache:export-D127577561
Oct 26, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
javache:export-D127577561

Conversation

@javache

@javache javache commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Summary:
Constant-initialize the default configuration and resolve its default logger only when logging. Expose the configuration to constant evaluation on non-Windows platforms; retain the out-of-line Windows getter so DLL consumers continue sharing the library-owned singleton.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D127577561

Summary:
Constant-initialize the default configuration and resolve its default logger only when logging. Expose the configuration to constant evaluation on non-Windows platforms; retain the out-of-line Windows getter so DLL consumers continue sharing the library-owned singleton.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D127577561
@meta-cla meta-cla Bot added the CLA Signed label Oct 26, 2026
@meta-codesync

meta-codesync Bot commented Oct 26, 2026

Copy link
Copy Markdown

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

meta-codesync Bot pushed a commit to meta/litho that referenced this pull request Oct 26, 2026
Summary:
X-link: react/react-native#59515

X-link: react/yoga#2050

Constant-initialize the default configuration and resolve its default logger only when logging. Expose the configuration to constant evaluation on non-Windows platforms; retain the out-of-line Windows getter so DLL consumers continue sharing the library-owned singleton.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D127577561

fbshipit-source-id: 017d21f8b797e412649fde0b5829df17f464436c
@meta-codesync
meta-codesync Bot merged commit 6c79cca into react:main Oct 26, 2026
35 of 36 checks passed
meta-codesync Bot pushed a commit to react/react-native that referenced this pull request Oct 26, 2026
Summary:
Pull Request resolved: #59515

X-link: react/yoga#2050

Constant-initialize the default configuration and resolve its default logger only when logging. Expose the configuration to constant evaluation on non-Windows platforms; retain the out-of-line Windows getter so DLL consumers continue sharing the library-owned singleton.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D127577561

fbshipit-source-id: 017d21f8b797e412649fde0b5829df17f464436c
@javache
javache deleted the export-D127577561 branch October 26, 2026 20:02
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.

1 participant