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?
There is no possibility to dispatch once and have many notifications appearing.
You can dispatch a notification for each of the error messages you have which would result in a lot of error notifications.
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); } }