applyBarrier
since v0.11.0
Applies the Barrier to the Query or Mutation. After operation start it checks the Barrier .$active
status and postpones the execution if the Barrier is active. After the Barrier is deactivated
, it resumes the execution of the operation.
Formulae
ts
import { applyBarrier } from '@farfetched/core';
applyBarrier(operation, { barrier });