Skip to content

Comments

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

Closed
jscheiny wants to merge 1 commit intobp6from
js/bp6/context-menu-react-18
Closed

[Proposal] break(ContextMenu): Use React 18 rendering#7392
jscheiny wants to merge 1 commit intobp6from
js/bp6/context-menu-react-18

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