isMutatingKey static method

bool isMutatingKey(
  1. String mutationKey
)

Returns true if a mutation with the given mutationKey is currently running.

Reactive: Reading this inside a ZenObserver or computed() automatically tracks only mutationKey and rebuilds when mutations for that key start or finish.

Implementation

static bool isMutatingKey(String mutationKey) =>
    _counterForKey(mutationKey).value > 0;