-
Notifications
You must be signed in to change notification settings - Fork 60
Conversation
src/actions/toaster.js
Outdated
* An action to dispatch to hide a toast | ||
* | ||
*/ | ||
export const toastHidden = () => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't handle multiple toast. we're using toasts to notify user about many changes, like sign message and network status changes. There's a good chance we'll need to show multiple - 2 is more realistic - toasts at the same time.
Please change this to include id
and tweak other parts of code accordingly.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toasts are by material design specs limited to one.
"They should not be persistent or be stacked, as they are above other elements on screen."
http://www.google.com/design/spec/components/snackbars-toasts.html#snackbars-toasts-usage
In Angular Material, it wasn't possible to stack them either.
Closes #486
But not using
react-redux-toaser
.Instead, using http://react-toolbox.com/#/components/snackbar because we are already using react toolbox so there's no point in adding another library.