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

[string-refs] log string ref from prod #31161

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

kassens
Copy link
Member

@kassens kassens commented Oct 9, 2024

If passed as a feature flag, this calls the configured function when a string ref is used even from prod code to find the last usages.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Oct 9, 2024
Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 10:08pm

@react-sizebot
Copy link

react-sizebot commented Oct 9, 2024

The size diff is too large to display in a single comment. The GitHub action for this pull request contains an artifact called 'sizebot-message.md' with the full message.

Generated by 🚫 dangerJS against ee33268

@@ -215,6 +215,7 @@ export const disableClientCache = true;
// during element creation.
export const enableRefAsProp = true;
export const disableStringRefs = true;
export const logStringRefs: null | ((string, string) => void) = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename this to have the enable prefix, and call out "prod"? like enableLogStringRefsProd

If passed as a feature flag, this calls the configured function when a string ref is used even from prod code to find the last usages.
@kassens kassens merged commit 5636fad into facebook:main Oct 10, 2024
363 checks passed
@kassens kassens deleted the pr31161 branch October 10, 2024 22:12
github-actions bot pushed a commit that referenced this pull request Oct 10, 2024
If passed as a feature flag, this calls the configured function when a
string ref is used even from prod code to find the last usages.

DiffTrain build for [5636fad](5636fad)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants