Skip to content

Watching a single entity change #779

@yes7rose

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.

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