Skip to content

Conversation

kassens
Copy link
Member

@kassens kassens commented Jul 11, 2024

While the goal is to remove legacy context completely, I think we can already land the removal of legacy context for function components. I didn't even know this feature existed until reading the code recently.

The win is just a couple of property lookups on function renders, but it trims down the API already as the full removal will likely still take a bit more time.

www: Starting with enabled test renderer and a feature flag for production rollout.

RN: Not enabled, will follow up on this.

While the goal is to remove legacy context completely, I think we can already land the removal of legacy context for function components. I didn't even know this feature existed until reading the code recently.

The win is just a couple of property lookups on function renders, but it trims down the API already as the full removal will likely still take a bit more time.

www: Starting with enabled test renderer and a feature flag for production rollout.

RN: Not enabled, will follow up on this.
Copy link

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

Copy link
Contributor

@yungsters yungsters left a comment

Choose a reason for hiding this comment

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

Didn't want to name it like the other flag, "ForNonClassComponents"? 😅

@kassens kassens merged commit af28f48 into facebook:main Jul 11, 2024
@kassens kassens deleted the pr30319 branch July 11, 2024 20:21
github-actions bot pushed a commit that referenced this pull request Jul 11, 2024
While the goal is to remove legacy context completely, I think we can
already land the removal of legacy context for function components. I
didn't even know this feature existed until reading the code recently.

The win is just a couple of property lookups on function renders, but it
trims down the API already as the full removal will likely still take a
bit more time.

www: Starting with enabled test renderer and a feature flag for
production rollout.

RN: Not enabled, will follow up on this.

DiffTrain build for [af28f48](af28f48)
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