MCPcopy Create free account
hub / github.com/effect-app/libs / invalidatedBy

Function invalidatedBy

packages/infra/test/rpc-e2e-invalidation.test.ts:396–399  ·  view source on GitHub ↗
(writes: DataDependencies.DataDependencies)

Source from the content-addressed store, hash-verified

394 const invalidatedBy = (writes: DataDependencies.DataDependencies) =>
395 [...queryReads]
396 .filter(([, reads]) => DataDependencies.intersects(reads, writes))
397 .map(([key]) => key)
398
399 // Run the query through the real client; register its forwarded reads under its key.
400 const query = yield* withDependencyCapture(client.GetRepoCount.handler())
401 expect(Exit.isSuccess(query.result)).toBe(true)
402 queryReads.set("GetRepoCount", query.dependencies.reads)

Callers 1

Calls 2

filterMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…