Is it possible to get the total queued toasts from useToastState? #6556
Unanswered
AndrewLeedham
asked this question in
Q&A
Replies: 1 comment
-
You're not missing anything, Toasts are still in Beta and we've implemented mostly what we need in React Spectrum. However, that does seem like a useful feature. I assume you're using the hooks, so you should be able to track it if you made your own implementation of just the toast queue in the meantime. Or you could potentially use a proxy pattern in front of useToastState to track them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
useToastState
hook seems to only exposevisibleToasts
with no way of checking the total length of the queue. Seems like it would be useful to show a user how many notifications they have in total. Am I missing something here?Beta Was this translation helpful? Give feedback.
All reactions