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] Make inserting outlined functions more resilient #30466

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

poteto
Copy link
Member

@poteto poteto commented Jul 25, 2024

Stack from ghstack (oldest at bottom):

To handle more cases, always append the synthetic outlined function as a
new child of the module rather than make assumptions about the original
function. This should handle whatever case where the original function
expression may be a child of a variety of parents

[ghstack-poisoned]
Copy link

vercel bot commented Jul 25, 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 Jul 25, 2024 7:20pm

poteto added a commit that referenced this pull request Jul 25, 2024
To handle more cases, always append the synthetic outlined function as a
new child of the module rather than make assumptions about the original
function. This should handle whatever case where the original function
expression may be a child of a variety of parents

ghstack-source-id: 4a0d8619faeb238dbe68aba7cf3643323e72baa9
Pull Request resolved: #30466
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 25, 2024
[ghstack-poisoned]
poteto added a commit that referenced this pull request Jul 25, 2024
To handle more cases, always append the synthetic outlined function as a
new child of the module rather than make assumptions about the original
function. This should handle whatever case where the original function
expression may be a child of a variety of parents

ghstack-source-id: 8581edb8be706c0f4ce506caf7cd9b0f5a145bc8
Pull Request resolved: #30466
Copy link
Contributor

@mofeiZ mofeiZ left a comment

Choose a reason for hiding this comment

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

Makes sense, and identifier naming should work as we're using generateUidIdentifier.

@poteto poteto merged commit daa8d03 into gh/poteto/37/base Jul 25, 2024
21 checks passed
poteto added a commit that referenced this pull request Jul 25, 2024
To handle more cases, always append the synthetic outlined function as a
new child of the module rather than make assumptions about the original
function. This should handle whatever case where the original function
expression may be a child of a variety of parents

ghstack-source-id: 8581edb8be706c0f4ce506caf7cd9b0f5a145bc8
Pull Request resolved: #30466
@poteto poteto deleted the gh/poteto/37/head branch July 25, 2024 19:38
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