(props?: OverlayOptions)
| 20 | } |
| 21 | |
| 22 | export function attachDevtoolsOverlay(props?: OverlayOptions): (() => void) { |
| 23 | |
| 24 | /* |
| 25 | Only load the overlay after the page is loaded |
| 26 | */ |
| 27 | let show = atom(false) |
| 28 | setTimeout(() => { |
| 29 | show.set(true) |
| 30 | }) |
| 31 | |
| 32 | return s.createRoot(dispose => { |
| 33 | s.createEffect(() => { |
| 34 | if (show()) { |
| 35 | <Overlay {...props} /> |
| 36 | } |
| 37 | }) |
| 38 | return dispose |
| 39 | }) |
| 40 | } |
| 41 | |
| 42 | const Overlay: s.Component<OverlayOptions> = props => { |
| 43 |
no test coverage detected
searching dependent graphs…