Sanity Library Reference Docs
    Preparing search index...
    • True when a write looks like a lost optimistic lock — every statusCode: 409 from the real client, or the bench's ifRevisionId check failed message. A bare 409 is not exclusively a lost fence: a create against an existing id (documentAlreadyExistsError) carries the same status. Narrow the error to one rev-guarded write before asking — anything wider (a whole cascade, or a commit together with its guard deploy) reads a create collision as a lost race.

      Parameters

      • error: unknown

      Returns boolean