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

Function useExportMutation

packages/vue/examples/streamMutation.ts:58–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56// ---------------------------------------------------------------------------
57
58export const useExportMutation = () => {
59 /**
60 * `result` - reactive ref, always reflects the latest stream event.
61 * `AsyncResult` tag:
62 * - Initial (waiting=true) - operation in progress
63 * - Success (waiting=true) - progress update received, still running
64 * - Success (waiting=false) - final result, operation complete
65 * - Failure - operation failed
66 *
67 * `execute` - call with the desired `total` to kick off the stream.
68 */
69 const [result, execute] = asStreamResult((total: S.NonNegativeInt) => makeExportStream(total))
70
71 return { result, execute }
72}

Callers

nothing calls this directly

Calls 2

asStreamResultFunction · 0.85
makeExportStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…