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. */ |
| 38 | export function disposeLadybugStore(): void { |
| 39 | singletonStore?.dispose(); |
| 40 | singletonStore = null; |
| 41 | } |
| 42 | |
| 43 | class="cm">// Clean up WASM resources on Vite HMR to prevent memory leaks. |
| 44 | if (import.meta.hot) { |
Tested by
no test coverage detected