Skip to content

[compiler] Reposition ref-in-render errors to the read location of .current - #30723

Merged
mvitousek merged 3 commits into
gh/mvitousek/29/basefrom
gh/mvitousek/29/head
Aug 16, 2024
Merged

mvitousek merged 3 commits into
gh/mvitousek/29/basefrom
gh/mvitousek/29/head

Conversation

@mvitousek

@mvitousek mvitousek commented Aug 16, 2024 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Summary:
Since we want to make ref-in-render errors enabled by default, we should position those errors at the location of the read. Not only will this be a better experience, but it also aligns the behavior of Forget and Flow.

This PR also cleans up the resulting error messages to not emit implementation details about place values.

…urrent

Summary:
Since we want to make ref-in-render errors enabled by default, we should position those errors at the location of the read. Not only will this be a better experience, but it also aligns the behavior of Forget and Flow.

This PR also cleans up the resulting error messages to not emit implementation details about place values.

[ghstack-poisoned]
@vercel

vercel Bot commented Aug 16, 2024 •

Copy link
Copy Markdown

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 Aug 16, 2024 5:17pm

…ation of .current"

Summary:
Since we want to make ref-in-render errors enabled by default, we should position those errors at the location of the read. Not only will this be a better experience, but it also aligns the behavior of Forget and Flow.

This PR also cleans up the resulting error messages to not emit implementation details about place values.

[ghstack-poisoned]

@josephsavona josephsavona left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice, i love the attention to detail on the error message. thanks!

…ation of .current"

Summary:
Since we want to make ref-in-render errors enabled by default, we should position those errors at the location of the read. Not only will this be a better experience, but it also aligns the behavior of Forget and Flow.

This PR also cleans up the resulting error messages to not emit implementation details about place values.

[ghstack-poisoned]
@mvitousek
mvitousek merged commit b9f9fd2 into gh/mvitousek/29/base Aug 16, 2024
mvitousek added a commit that referenced this pull request Aug 16, 2024
…urrent

Summary:
Since we want to make ref-in-render errors enabled by default, we should position those errors at the location of the read. Not only will this be a better experience, but it also aligns the behavior of Forget and Flow.

This PR also cleans up the resulting error messages to not emit implementation details about place values.

ghstack-source-id: 1d11317
Pull Request resolved: #30723
@mvitousek
mvitousek deleted the gh/mvitousek/29/head branch August 16, 2024 17:28
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
…urrent

Summary:
Since we want to make ref-in-render errors enabled by default, we should position those errors at the location of the read. Not only will this be a better experience, but it also aligns the behavior of Forget and Flow.

This PR also cleans up the resulting error messages to not emit implementation details about place values.

ghstack-source-id: 1d11317
Pull Request resolved: react#30723

This branch was successfully deployed

1 active deployment
Preview — b9f9fd26 Deployed Aug 16, 2024 by vercel[bot]
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.

3 participants