(fn)
| 25 | export const queue = new ToastQueue<MyToastContent>({ |
| 26 | // Wrap state updates in a CSS view transition. |
| 27 | wrapUpdate(fn) { |
| 28 | if ('startViewTransition' in document) { |
| 29 | document.startViewTransition(() => { |
| 30 | flushSync(fn); |
| 31 | }); |
| 32 | } else { |
| 33 | fn(); |
| 34 | } |
| 35 | } |
| 36 | }); |
| 37 | |
| 38 | export function MyToastRegion() { |
nothing calls this directly
no test coverage detected