(ref: ScopedThreadRef)
| 401 | } |
| 402 | |
| 403 | export function removePreviewThread(ref: ScopedThreadRef): void { |
| 404 | const threadKey = scopedThreadKey(ref); |
| 405 | appAtomRegistry.set(previewStateAtom(threadKey), EMPTY_THREAD_PREVIEW_STATE); |
| 406 | syncActivePreviewThread(threadKey, EMPTY_THREAD_PREVIEW_STATE); |
| 407 | changedPreviewThreadKeys.delete(threadKey); |
| 408 | } |
| 409 | |
| 410 | export function isPreviewSupportedInRuntime(): boolean { |
| 411 | if (typeof window === "undefined") return false; |
no test coverage detected