MCPcopy Index your code
hub / github.com/pingdotgg/t3code / removePreviewThread

Function removePreviewThread

apps/web/src/previewStateStore.ts:403–408  ·  view source on GitHub ↗
(ref: ScopedThreadRef)

Source from the content-addressed store, hash-verified

401}
402
403export 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
410export function isPreviewSupportedInRuntime(): boolean {
411 if (typeof window === "undefined") return false;

Callers 1

Calls 4

scopedThreadKeyFunction · 0.90
syncActivePreviewThreadFunction · 0.85
setMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected