()
| 218 | // Track invocations, not the observer's latest result: reset or a later |
| 219 | // mutation completing must not release work which is still running. |
| 220 | const settled = () => { |
| 221 | pendingInvocations-- |
| 222 | lifecycle.setPending(pendingInvocations > 0) |
| 223 | } |
| 224 | try { |
| 225 | return observer |
| 226 | .mutate(args[0] as TVariables, args[1]) |