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

chore: remove toast priority queue #7805

Merged
merged 8 commits into from
Feb 21, 2025
Merged

Conversation

snowystinger
Copy link
Member

Closes

Discussed in pre-ga meeting, removing as Spectrum doesn't use it anymore and it's not part of Toast aria patterns. We can add it back if enough people request it.
Instead, it's recommended that if people need a priority queue they should subclass or copy the ToastQueue implementation we have and add the priority queue there.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@rspbot
Copy link

rspbot commented Feb 20, 2025

reidbarber
reidbarber previously approved these changes Feb 20, 2025
@rspbot
Copy link

rspbot commented Feb 21, 2025

@rspbot
Copy link

rspbot commented Feb 21, 2025

# Conflicts:
#	packages/@react-aria/toast/docs/useToast.mdx
reidbarber
reidbarber previously approved these changes Feb 21, 2025
@rspbot
Copy link

rspbot commented Feb 21, 2025

@rspbot
Copy link

rspbot commented Feb 21, 2025

@rspbot
Copy link

rspbot commented Feb 21, 2025

@rspbot
Copy link

rspbot commented Feb 21, 2025

## API Changes

react-aria-components

/react-aria-components:ToastOptions

 ToastOptions {
   onClose?: () => void
-  priority?: number
   timeout?: number
 }

@react-stately/toast

/@react-stately/toast:QueuedToast

 QueuedToast <T> {
   content: T
   key: string
   onClose?: () => void
-  priority?: number
   timeout?: number
   timer?: Timer
 }

/@react-stately/toast:ToastOptions

 ToastOptions {
   onClose?: () => void
-  priority?: number
   timeout?: number
 }

@snowystinger snowystinger added this pull request to the merge queue Feb 21, 2025
Merged via the queue into main with commit 8efed80 Feb 21, 2025
30 checks passed
@snowystinger snowystinger deleted the remove-toast-priority-queue branch February 21, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants