MCPcopy
hub / github.com/coder/mux / resetStore

Function resetStore

src/browser/stores/WorkspaceStore.test.ts:781–784  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

779
780 /** Dispose the current store and replace it with a fresh instance (no client attached). */
781 const resetStore = () => {
782 store.dispose();
783 store = new WorkspaceStore(mockOnModelUsed);
784 };
785
786 const recreateStore = (onResponseComplete?: ReturnType<typeof createResponseCompleteSpy>) => {
787 resetStore();

Callers 2

recreateStoreFunction · 0.85

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected