()
| 51 | } |
| 52 | |
| 53 | unmount() { |
| 54 | if (!this.#isMounted && !this.#isMounting) { |
| 55 | throw new Error('Devtools is not mounted') |
| 56 | } |
| 57 | |
| 58 | if (this.#isMounting) { |
| 59 | this.#abortMount = true |
| 60 | this.#isMounting = false |
| 61 | return |
| 62 | } |
| 63 | |
| 64 | this.#dispose?.() |
| 65 | this.#isMounted = false |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | class NoOpDevtoolsCore extends DevtoolsCore { |