Skip to content

Local collection manual transaction does not work #722

@marbemac

Description

@marbemac
  • I've validated the bug against the latest version of DB packages

Describe the bug

The newly inserted item is removed on next tick.

To Reproduce

  1. Open packages/db/tests/local-only.test.ts
  2. Add the below to the end of the should accept and persist mutations from manual transactions test
await new Promise((resolve) => setTimeout(resolve, 10))

expect(collection.get(100)).toEqual({ id: 100, name: `Manual Tx Insert` })

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