We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notifSend()
The documentation shows the usage as:
dispatch(notifSend(message));
which seems to indicate that notifSend is returning an action object, but it actually returns a thunk. This is problematic for two reasons:
notifSend
I feel that notifSend should return a simple action object, or another function should be added to the api the does just that.
The text was updated successfully, but these errors were encountered:
Just learned you can't use backticks in the title. Good to know.
Sorry, something went wrong.
Feel free to submit a PR for this! I agree that it shouldn't assume the application is using thunks.
@jcheroske, what is the workaround you found if you're using redux saga?
If you are not using thunks you can instead of:
thunks
dispatch( notifSend({ message: 'Message success', kind: 'info', dismissAfter: 2000 }) );
do:
notifSend({ message: 'Message success', kind: 'info', dismissAfter: 2000 })(dispatch);
@simutis Thanks, that worked great!
No branches or pull requests
The documentation shows the usage as:
which seems to indicate that
notifSend
is returning an action object, but it actually returns a thunk. This is problematic for two reasons:I feel that
notifSend
should return a simple action object, or another function should be added to the api the does just that.The text was updated successfully, but these errors were encountered: