react-redux-snackbar icon indicating copy to clipboard operation
react-redux-snackbar copied to clipboard

Make `uniqueId` optional

Open smeijer opened this issue 8 years ago • 0 comments

I don't think it happens very often that a snackbar is closed based on some logic other than user interaction or timeout. So, it would be nice if the uniqueId could be made optional:

dispatch(showSnack('my-unique-id', {
  label: 'saved',
}));
dispatch(showSnack({
  label: 'saved',
}));```

smeijer avatar Jan 26 '18 12:01 smeijer