Skip to content

bindWithDispatch arguments order #41

Open
@bertho-zero

Description

@bertho-zero

In the "Autobind Action Creators" part of the readme I see:

const services = bindWithDispatch(store.dispatch, rawServices)

The signature of the redux binder is bindActionCreators(actionCreators, dispatch), so I propose to respect the order of the arguments of the redux doc, ie:

const services = bindWithDispatch(rawServices, store.dispatch)

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