Skip to content

[Pouchdb-transform][Bug] afterIncoming can not get result.ok when new_edits is false #7916

Closed
@snowyu

Description

@snowyu

Issue

I've used the result.ok to check the saving whether successful in the transform.
But put or bulkDocs with options.new_edit: false successfully returns result.ok is undefined.

aDB.transform({
  afterIncoming: async (result: ITransformIncomingResult, type: TransformPouchType) => {
    if (result.ok) {
       // do it if ok
    }
  }
})

I've find this is reason #5775 and #7572 .
So how to determine if the document has been successfully saved, through the strange couchdb bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions