Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
operationResults$,
onStart(() => this.dispatchOperation(operation)),
take(1)
);
}
const teardown$ = pipe(
this.operations$,
filter(op => op.operationName === 'teardown' && op.key === key)
);
const result$ = pipe(
operationResults$,
takeUntil(teardown$),
onStart(() => this.onOperationStart(operation)),
onEnd(() => this.onOperationEnd(operation))
);
return operation.context.suspense !== false &&
this.suspense &&
operationName === 'query'
? toSuspenseSource(result$)
: result$;
}