-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Conversation
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]
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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]
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]
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
compiler/packages/babel-plugin-react-compiler/src/Optimization/OutlineJsx.ts
Outdated
Show resolved
Hide resolved
<Foo k={i + 'i'}></Foo> | ||
<Foo k={i + 'j'}></Foo> |
There was a problem hiding this comment.
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>
.../babel-plugin-react-compiler/src/__tests__/fixtures/compiler/jsx-outlining-duplicate-prop.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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]
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]
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
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
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.