Skip to content

Builder is called even when state is not changed #193

@guyo13

Description

@guyo13

I am working on an app where I use StoreConnectors heavily, I started noticing that the builder callback is being called - sometimes more than once - even if I don't make any changes to the state.
This happens when I for example open/close a Drawer or change focus between TextFields.

All my StoreConnectors are set to distinct=true and view models correctly implement operator == and hashCode
and really if the vms don't change then onDidChange is not fired.

I just don't understand why all those StoreConnectors keep firing their builders on every small user interaction.

Would be appreciated if anyone can help me understand why is this happening

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions