Skip to content

Conversation

@poteto
Copy link
Member

@poteto poteto commented Jul 23, 2024

Stack from ghstack (oldest at bottom):

babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

[ghstack-poisoned]
@vercel
Copy link

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

poteto added a commit that referenced this pull request Jul 23, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: #30435
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 23, 2024
@@ -0,0 +1,12 @@
import idx from 'idx';
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: could we rename this fixture to error.bug-idx-outlining to differentiate between bugs and expected errors?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, landed too quickly! i'm gonna try and fix this bug so hopefully I'll be able to rename it then

@poteto poteto merged commit fd0923a into gh/poteto/36/base Jul 23, 2024
poteto added a commit that referenced this pull request Jul 23, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: #30435
@poteto poteto deleted the gh/poteto/36/head branch July 23, 2024 19:57
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec
Pull Request resolved: facebook#30435
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

[ghstack-poisoned]
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

ghstack-source-id: 3a97570
Pull Request resolved: #30587
mvitousek added a commit that referenced this pull request Aug 2, 2024
…being outlined"

Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

[ghstack-poisoned]
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

[ghstack-poisoned]
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

ghstack-source-id: f731ad6
Pull Request resolved: #30587
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.

4 participants