iamhosseindhv / notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other
https://notistack.com
Other
3.93k stars 298 forks source link

Suggestions - React Hook #77

Closed ayepRahman closed 5 years ago

ayepRahman commented 5 years ago

Hi there, will you be updating the use of withSnackbar to react hook anytime soon? =)

const { useSnackbar } from 'notistack'

const [ enquerySnackbar ] = useSnackbar();
iamhosseindhv commented 5 years ago

@ayepRahman Thanks for the suggestion. There is discussion PR for this https://github.com/iamhosseindhv/notistack/pull/17

Not sure about "anytime soon". but definitely in the next major release.