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

[compiler] Outline jsx with duplicate attributes #31378

Closed
wants to merge 6 commits into from

Conversation

gsathya
Copy link
Member

@gsathya gsathya commented Oct 28, 2024

Stack from ghstack (oldest at bottom):

Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

[ghstack-poisoned]
Copy link

vercel bot commented Oct 28, 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 6, 2024 5:18pm

gsathya added a commit that referenced this pull request Oct 28, 2024
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

ghstack-source-id: bfcf94bd02ad11945fc18b787f22c06c1f11dea1
Pull Request resolved: #31378
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Oct 28, 2024
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

[ghstack-poisoned]
gsathya added a commit that referenced this pull request Oct 28, 2024
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

ghstack-source-id: bfcf94bd02ad11945fc18b787f22c06c1f11dea1
Pull Request resolved: #31378
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

[ghstack-poisoned]
gsathya added a commit that referenced this pull request Oct 28, 2024
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

ghstack-source-id: 32afeab0b8938bb74f0e9eff6c5490772bc17c6e
Pull Request resolved: #31378
Comment on lines +9 to +10
<Foo k={i + 'i'}></Foo>
<Foo k={i + 'j'}></Foo>
Copy link
Contributor

@josephsavona josephsavona Oct 30, 2024

Choose a reason for hiding this comment

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

try adding a third child with <Foo k1={i + 'k'}></Foo>

Copy link
Contributor

@josephsavona josephsavona left a comment

Choose a reason for hiding this comment

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

Awesome! Just a couple things to address before landing

Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

[ghstack-poisoned]
gsathya added a commit that referenced this pull request Nov 1, 2024
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

ghstack-source-id: f3a19da7c44f860b7212868c348af8b7f27189f3
Pull Request resolved: #31378
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

[ghstack-poisoned]
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

[ghstack-poisoned]
gsathya added a commit to gsathya/react that referenced this pull request Nov 6, 2024
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

ghstack-source-id: 3777d9947304d8ebcc5617ecf1a4f26ae4701684
Pull Request resolved: facebook#31378
gsathya added a commit to gsathya/react that referenced this pull request Nov 6, 2024
Previously, we would skip outlining jsx expressions that had duplicate
jsx attributes as we would not rename them causing incorrect
compilation.

In thir PR, we add outlining support for duplicate jsx attributes by
renaming them.

ghstack-source-id: 3777d9947304d8ebcc5617ecf1a4f26ae4701684
Pull Request resolved: facebook#31378
@gsathya gsathya closed this Nov 6, 2024
@gsathya gsathya deleted the gh/gsathya/11/head branch November 6, 2024 17:48
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