Skip to content

fix(react-toast): report status for imperative dismissal - #36865

Open
Minwook Shin (minwookshin) wants to merge 1 commit into
microsoft:masterfrom
minwookshin:fix/36862-toast-dismiss-status
Open

Minwook Shin (minwookshin) wants to merge 1 commit into
microsoft:masterfrom
minwookshin:fix/36862-toast-dismiss-status

Conversation

@minwookshin

Copy link
Copy Markdown

Previous Behavior

dismissToast and dismissAllToasts hide visible toasts without reporting the dismissed status.

New Behavior

Route imperative dismissal through the existing close path and report dismissal once per visible toast. Clear the queue before dismiss-all callbacks and preserve any new toast dispatched by a callback. Queued-toast behavior and React Strict Mode effect replay are unchanged.

Validated with 219 toast tests (16 suites), library/spec/Cypress type checks, package build, lint, and formatting. Added regressions fail before the fix.

Related Issue(s)

Fixes #36862

@minwookshin
Minwook Shin (minwookshin) requested a review from a team as a code owner October 9, 2026 19:07

This branch has not been deployed

No deployments
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.

[Bug]: Inconsistent toast status

1 participant