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