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

[Proposal] break(ContextMenu): Use React 18 rendering #7392

Closed
wants to merge 1 commit into from

Conversation

jscheiny
Copy link
Contributor

Part of #7165

Changes proposed in this pull request:

This PR proposes a changed API for the context menu imperative API to support React 18 rendering. In this API instead of having two different render and unmount functions we have a single function which renders the element and returns an unmount function. This allows a root node to be maintained between these functions so that we can use the React 18 rendering API.

If we're happy with this API then I've introduced a change here #7391 which implements this API in a non-breaking way, maintaining the old types and React 16 compatible rendering. Once that's in, I'll cherry pick onto bp6 and then update this PR and make it ready for review.

@svc-palantir-github
Copy link

[Concept] break(ContextMenu): Use React 18 rendering

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

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

@jscheiny jscheiny closed this Mar 27, 2025
@jscheiny jscheiny deleted the js/bp6/context-menu-react-18 branch March 27, 2025 19:27
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.

2 participants