Skip to content

TypeError: Cannot read property '_status' of undefined #1952

@gentlee

Description

@gentlee

Types of watermelon 0.28.0 show that they support passing array of models:

await this.database.write(async (writer) => {
  writer.batch(models)
}, description)

But this error is fired: TypeError: Cannot read property '_status' of undefined

This is fixed code:

await this.database.write(async (writer) => {
  writer.batch(...models)
}, description)

Seems that it was supported in 0.25.5 but no longer supported in 0.28.0.

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