Repository navigation
Toasts 3.6.0 — queue expiry and global modal portals
Adds a store-wide queue timer policy and native support for global toast portals in modal-based applications.
- Set
pauseWhenQueued={false}onToastProvider, orpauseWhenQueued: falseincreateToastStore, to expire hidden notifications too. Directtoast.*calls use the provider policy. - Use
portalContainer="body"for a stable global portal with safe server rendering and hydration. - Optional Radix integration: import
ToastFocusScopeBranchfrom@rentnerkev/toasts/radixand place it insideDialog.Contentto keep global toast actions accessible within the modal focus scope. - Dismissing a focused toast restores focus to the previous connected control.
Existing queue pauses remain the default. Notifications with duration: 0 remain persistent; hover and focus pauses are preserved.
Validated with unit tests, type checks, lint, package consumer tests, browser tests, React 19.0/19.3 and Motion 12/13 compatibility checks.
Release · v3.6.0
Stable Release · Published on 17 October 2026
Changelog
🌟 Features
- toasts: support queued expiry and global modal portals (872f33f)
