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

Function makeMutation

packages/vue/src/mutate.ts:401–415  ·  view source on GitHub ↗
(queryInvalidator: QueryInvalidator<RInvalidator>)

Source from the content-addressed store, hash-verified

399 return yield* select(result).pipe(
400 Effect.onExit((exit) =>
401 Effect.gen(function*() {
402 const serverKeys = yield* Ref.get(keysRef)
403 const writeDependencies = yield* Ref.get(writesRef)
404 yield* invalidateCache(input, exit, serverKeys, writeDependencies)
405 })
406 )
407 )
408 }
409 return result
410 })
411
412 return handle
413}
414
415/**
416 * A callable mutation result. When `I = void` the input argument may be omitted.
417 */
418export interface MutationFn<I, A, E, R, Id extends string> {

Callers 1

makeClient.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…