Skip to content

Replace Context.Provider with Context #7838

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

Merged
merged 3 commits into from
Jun 3, 2025
Merged

Conversation

kassens
Copy link
Collaborator

@kassens kassens commented Jun 2, 2025

Update to be in line with the recommended way from React 19.

Docs https://react.dev/blog/2024/12/05/react-19#context-as-a-provider

@rickhanlonii
Copy link
Member

@kassens I was working on this on #7793, the only files that seem difference is legacy.md, do you want to land only that and we'll land the other PR?

Update to be in line with the recommended way from React 19.

Docs https://react.dev/blog/2024/12/05/react-19#context-as-a-provider
@kassens kassens force-pushed the context-provider branch from aa77d26 to 4027655 Compare June 3, 2025 16:49
@kassens
Copy link
Collaborator Author

kassens commented Jun 3, 2025

Rebase on top of the similar PR with a few additional tweaks left.

Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

LGTM, left some suggestions

@kassens kassens merged commit 5927c4e into reactjs:main Jun 3, 2025
5 of 6 checks passed
@kassens kassens deleted the context-provider branch June 3, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants