Closed amirqasemi74 closed 5 years ago
I think you are saying that you need to call enqueueSnackbar
out of component scope?
It seems that we should expose this method?
Exactly....
@amirqasemi74 I am also facing this problem. For now, I have to write a component returns null
, and trigger the enqueueSnackbar
on redux state change, like exactly what the official example did.
have a look at the solution presented here: https://github.com/iamhosseindhv/notistack/issues/30
Hopefully that has fixes your issue. closed due to inactivity.
i think if you provide this solution inside your library as feature is better than every one who want to use it like me wrap your library in to it's own... it could be a cool feature...
I need to enqueue snackbar without using hooks or hocs...
like
react-toastify
...