Skip to content

Watching a single entity change #779

Description

@yes7rose

When watch a query, the query is triggered when any changes happened.
Want trigger happens only the specified entity changed.

Just like Drift's feature Stream watchSingle(): Watches the query, asserting that a single row is reported each time the query runs.
Stream<T?> watchSingleOrNull(): Like watchSingle(), but returning empty result sets as null.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions