Skip to content

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

Description

@JoshMcCullough

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions