MCPcopy Create free account
hub / github.com/bholmesdev/simplestack-store / middleware

Function middleware

src/middleware.test.ts:110–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 it("exposes destroy when init returns cleanup", () => {
109 const cleanupSpy = vi.fn();
110 const middleware: StoreMiddleware<number> = () => ({
111 init: () => cleanupSpy,
112 });
113
114 const countStore = store(0, { middleware: [middleware] });
115 countStore.destroy();

Callers 1

createStoreApiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected