Skip to content

Toasts 3.6.0 — queue expiry and global modal portals

Choose a tag to compare

@RentnerKev RentnerKev released this 17 Oct 21:14

RentnerKev release banner

Adds a store-wide queue timer policy and native support for global toast portals in modal-based applications.

  • Set pauseWhenQueued={false} on ToastProvider, or pauseWhenQueued: false in createToastStore, to expire hidden notifications too. Direct toast.* calls use the provider policy.
  • Use portalContainer="body" for a stable global portal with safe server rendering and hydration.
  • Optional Radix integration: import ToastFocusScopeBranch from @rentnerkev/toasts/radix and place it inside Dialog.Content to 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

v3.5.0...v3.6.0

🌟 Features

  • toasts: support queued expiry and global modal portals (872f33f)