An open source design system that's fully customizable and agent ready
TypeScript
docs(layer-runtime): toastHost owns the toast context and queue (#10166)
Christopher Chedeau8d59e5d35df6
diff --git a/docs/architecture/layer-runtime.md b/docs/architecture/layer-runtime.mdindex 18c0d3e410..4dabcc7737 100644--- a/docs/architecture/layer-runtime.md+++ b/docs/architecture/layer-runtime.md@@ -732,7 +732,9 @@ is staged as `[breaking]` (`spec:AST-017` FR32) and `component:SelectableCard`policies.- Drawer owns modal `showModal()` and non-modal `showPopover()` hosting while theshared dismissal stack owns Escape and platform close routing.-- `LayerProvider`, `ToastContext`, `useToast`, and `ToastViewport` own current+- `Layer/toastHost.tsx` owns `ToastContext`, Toast's viewport registration, and+ the toast queue that LayerProvider's outlet and `useToast`'s fallback root+ both use. `LayerProvider`, `useToast`, and `ToastViewport` own currentnotification state, dispatch, and viewport rendering; the viewport sits atthe provider's inset on each edge unless its own `toast.inset` overrides thatedge.