useDismissible
Track and persist dismissed surfaces.
useDismissible manages the show/hide state of a dismissible element — an alert, chip, banner or
announcement — and remembers the dismissal so it stays gone on the
next visit. It's built on useLocalStorage, so
it's SSR-safe and synced across tabs and components.
Usage
Signature
Return value
open is true until the stored value is known, so the element renders immediately and won't pop in after hydration.
Use 'session' storage for messages that should reappear in a new tab or session.