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 non-jsx children #31400

Closed
wants to merge 3 commits into from

Conversation

gsathya
Copy link
Member

@gsathya gsathya commented Nov 1, 2024

Stack from ghstack (oldest at bottom):

Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

[ghstack-poisoned]
Copy link

vercel bot commented Nov 1, 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 Nov 1, 2024
Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

ghstack-source-id: 028ae9ffc65c8b956e1bb0548feb571667def8b2
Pull Request resolved: #31400
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Nov 1, 2024
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 one thing to address before landing

Comment on lines 219 to 220
let id = 1;
function generateName(seen: Set<string>, oldName: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

this will cause non-deterministic output, it has to be scoped to the outer transform

Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

[ghstack-poisoned]
gsathya added a commit that referenced this pull request Nov 6, 2024
Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

ghstack-source-id: 24d32f60148cc189effc23523631c652035a8976
Pull Request resolved: #31400
Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

[ghstack-poisoned]
gsathya added a commit that referenced this pull request Nov 6, 2024
Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

ghstack-source-id: f8d88aa867847db17ab2b07c574fa5216069a666
Pull Request resolved: #31400
gsathya added a commit to gsathya/react that referenced this pull request Nov 6, 2024
Previously, we bailed out on outlining jsx that had children that were
not part of the outlined jsx.

Now, we add support for children by treating as attributes.

ghstack-source-id: f8d88aa867847db17ab2b07c574fa5216069a666
Pull Request resolved: facebook#31400
@gsathya gsathya closed this Nov 6, 2024
@gsathya gsathya deleted the gh/gsathya/12/head branch November 6, 2024 17:51
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