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

Function combineQueryInvalidators

packages/vue/src/mutate.ts:128–137  ·  view source on GitHub ↗
(
  ...invalidators: ReadonlyArray<QueryInvalidator<R>>
)

Source from the content-addressed store, hash-verified

126export const atomQueryInvalidator: QueryInvalidator<Reactivity.Reactivity> = {
127 invalidateAndAwait,
128 invalidateSoft
129}
130
131export const combineQueryInvalidators = <R>(
132 ...invalidators: ReadonlyArray<QueryInvalidator<R>>
133): QueryInvalidator<R> => ({
134 invalidateAndAwait: (keys) =>
135 Effect.forEach(
136 invalidators,
137 (invalidator) => invalidator.invalidateAndAwait(keys),
138 { discard: true, concurrency: "unbounded" }
139 ),
140 invalidateSoft: (keys) =>

Callers 2

makeClientFunction · 0.90
makeClient.test.tsFile · 0.85

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…