Skip to content

Can I pass multiple error notification when dispatching? #47

@batuhantozun

Description

@batuhantozun

Hey,
I am passing notification in my dispatchNotification method. So, I wanna pass multiple error and show a bunch of notification. How can I pass "message" like an array?

dispatchNotification(status, message) {
const notificationOpts = {
message,
position: 'tc'
};
if (status === 'success') {
this.props.success(notificationOpts);
}
if (status === 'error') {
this.props.error(notificationOpts);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions