Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return reference to toastr instance so we can destroy them at will #140

Open
JoshMcCullough opened this issue May 19, 2020 · 0 comments
Open

Comments

@JoshMcCullough
Copy link

toastr returns a reference to the resulting toastr object when you e.g. toastr.info(...), however, as far as I can tell there is no way to get this reference using react-toastr. Here is the relevant source: https://github.com/CodeSeven/toastr/blob/master/toastr.js#L69

It would be useful to be able to get a reference to the toast instance so we can do things such as pop a "Saving, please wait..." toast, and then destroy it and pop a "Your thing was successfully saved!" toast. Is it possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant