Repository navigation
docs(layer-runtime): toastHost owns the toast context and queue - #10166
Conversation
Since meta#10012, `ToastContext` lives in Layer/toastHost.tsx, with Toast's viewport registration and the queue that holds a toast until a viewport takes it. The record's owning-code list still named `ToastContext` beside LayerProvider, useToast and ToastViewport. It now names toastHost.tsx and what it owns, as INV10 and its verification row already do.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
|
/approve-spec 4100c70 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The new Owning code sentence matches main: Layer/toastHost.tsx defines ToastContext, registerToastHost and createToastQueue, and LayerProvider's outlet and useToast's fallback root both use that queue; no requirement in the record changes.
Next, a maintainer adds the ci:run label so CI runs on this fork branch; until then the required checks report that they are waiting for it.
[Automated review]
Reader impact
architecture:layer-runtime's owning-code list tells a contributor thatLayerProvider,ToastContext,useToastandToastViewportown notification state. Since #10012,ToastContextlives inLayer/toastHost.tsx, with Toast's viewport registration and the queue that holds a toast until a viewport takes it. A contributor who follows the list misses the file that owns them.Source of truth
packages/core/src/Layer/toastHost.tsxonmain, which exportsToastContext,registerToastHost,createToastQueue,ToastQueueConnectorandToastHostOutlet. The record's own INV10 and its verification row already nametoastHost.tsx.Correction
One bullet under "Owning code" now starts: "
Layer/toastHost.tsxownsToastContext, Toast's viewport registration, and the toast queue that LayerProvider's outlet anduseToast's fallback root both use." The rest of the bullet is unchanged, minusToastContextin its list. No claim, invariant or verification row changes.Evidence
The bullet names only files and exports that exist on
main.pnpm check:knowledgepasses.Writing rubric results
Scope
Testing
pnpm check:knowledge, Prettier on the record andpnpm review:prepass at this head.