Skip to content

feat: Implement toast lifecycle and onStatusChange handler#28175

Merged
ling1726 merged 13 commits intomicrosoft:masterfrom
ling1726:react-toast/feat/lifecycle
Jun 14, 2023
Merged

feat: Implement toast lifecycle and onStatusChange handler#28175
ling1726 merged 13 commits intomicrosoft:masterfrom
ling1726:react-toast/feat/lifecycle

Conversation

@ling1726
Copy link
Contributor

@ling1726 ling1726 commented Jun 8, 2023

Implements the following lifecycle statuses:

  • queued
  • visible
  • dismissed
  • unmounted

The onStatusChange callback can be used when creating a toast to listen to the lifecycle changes.

Fixes #27828

Implements the following lifecycle statuses:

- added
- visible
- closed
- removed
- updated

The `onStatusChange` callback can be used when creating a toast to
listen to the lifecycle changes.
@github-actions github-actions bot added this to the June Project Cycle Q2 2023 milestone Jun 8, 2023
@ling1726 ling1726 marked this pull request as ready for review June 8, 2023 10:15
@ling1726 ling1726 requested a review from a team as a code owner June 8, 2023 10:15
@fabricteam
Copy link
Collaborator

fabricteam commented Jun 8, 2023

📊 Bundle size report

🤖 This report was generated against 122c0d6057ad16e9e005e68214b083a77686d1df

@size-auditor
Copy link

size-auditor bot commented Jun 8, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 122c0d6057ad16e9e005e68214b083a77686d1df (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 8, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e90f1b2:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@ling1726 ling1726 requested a review from layershifter June 8, 2023 13:01
@ling1726 ling1726 enabled auto-merge (squash) June 9, 2023 12:08
@ling1726 ling1726 disabled auto-merge June 9, 2023 14:15
@Hotell Hotell removed their assignment Jun 12, 2023
@ling1726 ling1726 merged commit 6a825b1 into microsoft:master Jun 14, 2023
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.

Create toast onChange function

5 participants