Skip to content

$digest may be triggered before the actual state change #212

Open
@cozmy

Description

@cozmy

Triggering the $digest in the middleware is a bad idea as it may happen before the actual state change. It should be triggered in store.subscribe() as this is a change listener which "will be called any time an action is dispatched, and some part of the state tree may potentially have changed".

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