()
| 56 | // --------------------------------------------------------------------------- |
| 57 | |
| 58 | export 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…