MCPcopy
hub / github.com/opentrace/opentrace / disposeLadybugStore

Function disposeLadybugStore

ui/src/store/createLadybugStore.ts:38–41  ·  ui/src/store/createLadybugStore.ts::disposeLadybugStore
()

Source from the content-addressed store, hash-verified

36 * so the worker and its WASM database don't linger for the lifetime of
37 * the page. A later createLadybugStore() transparently rebuilds it. */
38export function disposeLadybugStore(): void {
39 singletonStore?.dispose();
40 singletonStore = null;
41}
42
43class="cm">// Clean up WASM resources on Vite HMR to prevent memory leaks.
44if (import.meta.hot) {

Callers 1

OpenTraceAppFunction · 0.90

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected