Skip to content

[compiler] Add fixture for objectexpr computed key bug#31348

Merged
mofeiZ merged 1 commit into
mainfrom
pr31348
Nov 5, 2024
Merged

[compiler] Add fixture for objectexpr computed key bug#31348
mofeiZ merged 1 commit into
mainfrom
pr31348

Conversation

@mofeiZ
Copy link
Copy Markdown
Contributor

@mofeiZ mofeiZ commented Oct 24, 2024

We were bailing out on complex computed-key syntax (prior to #31344) as we assumed that this caused bugs (due to inferring computed key rvalues to have freeze effects).

This fixture shows that this bailout is unrelated to the underlying bug

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 24, 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 Nov 5, 2024 8:25pm

We were bailing out on complex computed-key syntax (prior to #31344) as we assumed that this caused bugs (due to inferring computed key rvalues to have `freeze` effects).

This fixture shows that this bailout is unrelated to the underlying bug
@josephsavona
Copy link
Copy Markdown
Member

Discussed offline and InferRefEffects should treat object keys as Read not Freeze.

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.

3 participants