The this.props.notifyError() is being called and does pass the error() to notifyErrorAction(). When I log out fn in the notifyErrorAction() I get:
ƒ error(opts) {
return show(opts, 'error');
}
I'm not sure if there is a step I'm missing. The only difference I can see is that you called dispatchNotification with a timeout. Was this just for effect or does the timing matter?
Following you example and getting an error when trying to pass a function as an argument to the dispatch call.
Your Example:
When I try this on my machine I get an error saying:
Uncaught TypeError: _reactNotificationSystemRedux2.default.fn is not a function
Below is my code:
The
this.props.notifyError()
is being called and does pass theerror()
tonotifyErrorAction()
. When I log outfn
in thenotifyErrorAction()
I get:I'm not sure if there is a step I'm missing. The only difference I can see is that you called
dispatchNotification
with a timeout. Was this just for effect or does the timing matter?