Skip to content

how to bind some arg to all actions ? #95

@lyquocnam

Description

@lyquocnam

hi everyone, i have a problem.
i want to send some objects to actions before component render. how can i do that ?
my currently solution:
<Button onClick={actions.bind(null, data)} label="OK"/>
but this i have to bind each action on my component, that's too bad.
how can i bind data object to all actions in once?
thanks so much !

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