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

[core] break(Portal): stop using legacy context in React 18 #6680

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

adidahiya
Copy link
Contributor

Fixes #6572

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

  • ❗ break(Portal): stop using legacy context API in React 18

Reviewers should focus on:

We assume that React 18 users of Blueprint are not using legacy APIs. The <Portal> component currently has support for both the new context API and the legacy one. The backwards-compatible implementation (initialized via Portal.contextTypes = ...) triggers a warning in React 18 strict mode which we would like to avoid (see #6572).

This is a breaking change but likely a welcome one for React 18 users. Open to feedback; leave a comment below.

Screenshot

@adidahiya
Copy link
Contributor Author

[core] break(Portal): stop using legacy context in React 18

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya merged commit a1fc694 into develop Jan 30, 2024
11 of 12 checks passed
@adidahiya adidahiya deleted the ad/portal-no-legacy-context-in-react-18 branch January 30, 2024 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React 18 StrictMode Compatibility Plan/State
1 participant