Skip to content

[Docs] Incorrect description about dispatch method #417

Closed
@jonathan-roy

Description

@jonathan-roy

Is is said in the doc that:

The first thing to know is that store.dispatch returns the value returned by the triggered action handler, so you can return a Promise in an action.

Dispatch: Dispatch an action. Returns the return value of the triggered action handler, or a Promise if multiple handlers are triggered.

It seems like actually every call to dispatch() returns a Promise even when there is only one handler which does not return a Promise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions