Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Add option to not emit changes if nothing changes #20

@DanielMSchmidt

Description

@DanielMSchmidt

Currently, if the field resolvers don't use a sophisticated distinctUntilChanged on their value or if they don't work with immutable data structures we will emit too many change events, because if something deep in the tree changes we will have combineLatest fire too often.

We are in a position to mitigate this problem: We have all the type information from the schema, so we can just traverse the schema and whenever we find a primitive we can wrap it with distinctUntilChanged.

I would love to hide this behavior behind a flag, as the comparison might have more toll on the performance then emitting too many events

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