Skip to content

Explore passing actions in Connector and @connect decorator? #84

@skevy

Description

@skevy

It would be more convenient to not have to call bindActionCreators directly inside the component, so I was thinking that we might able to add something to Connector and the @connect decorator to make this nicer? In addition, that would prevent calling bindActionCreators in render every time (which would provide an extremely slight performance benefit :)).

It seems like the idea of "connecting" could mean connecting to stores AND/OR connecting to actions, if the user wanted. Seems like Connector is perfect to just mean..."hey, connect this component (or child component) to Redux".

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions