I'm using React Boilerplate with React Redux Toastr and I want to be able to call a toastr using React Intl's messages.
I've tried to call it within a componet, but as toastr is making state updates, Reacts warns me about that as an anti-pattern. I tried too to call within a saga, but there's no way I can include Intl'messages.
toastr.error(formatMessage(messages.userNotFoundErrorLabel));
What's the best place to call a toastr with internationalization messages and making the good use of redux?
This can be done within Component's componentDidUpdate function without the warning.