Skip to content

Comments

break(OverlayToaster): Use React 18 createRoot for rendering via createAsync#7390

Merged
jscheiny merged 5 commits intobp6from
js/bp6/overlay-toaster-react-18
Mar 27, 2025
Merged

break(OverlayToaster): Use React 18 createRoot for rendering via createAsync#7390
jscheiny merged 5 commits intobp6from
js/bp6/overlay-toaster-react-18

Conversation

@jscheiny
Copy link
Contributor

@jscheiny jscheiny commented Mar 21, 2025

Part of #7166

Changes proposed in this pull request:

In this PR we make two breaking changes:

  1. Remove the domUnmounter field for OverlayToasterCreateOptions. This fields was never used anyways, so this is just clean up.
  2. Make the default domRenderer value for OverlayToaster.createAsync use the new React createRoot method for rendering.

In a follow up PR, we will consolidate create and createAsync to make them have the same behavior and then deprecate createAsync.

@jscheiny jscheiny marked this pull request as ready for review March 21, 2025 20:44
@svc-palantir-github
Copy link

break(OverlayToaster): Use React 18 createRoot for rendering via createAsync

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

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

@svc-palantir-github
Copy link

remove console.log

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

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

// toaster.getToasts().map(t => t.message),
// ["six", "one"],
// );
// });
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove commented out code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed now

@svc-palantir-github
Copy link

Uncomment test

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

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

@svc-palantir-github
Copy link

Merge remote-tracking branch 'origin/bp6' into js/bp6/overlay-toaster-react-18

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

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

@jscheiny jscheiny merged commit 42ae823 into bp6 Mar 27, 2025
14 checks passed
@jscheiny jscheiny deleted the js/bp6/overlay-toaster-react-18 branch March 27, 2025 19:25
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