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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Toasts Stacking on single toast() call #440

Closed
danthegoodman1 opened this issue Mar 17, 2020 · 4 comments
Closed

Multiple Toasts Stacking on single toast() call #440

danthegoodman1 opened this issue Mar 17, 2020 · 4 comments

Comments

@danthegoodman1
Copy link

danthegoodman1 commented Mar 17, 2020

Do you want to request a feature or report a bug?
Bug
What is the current behavior?

<BrowserRouter>
      <Navbar />
      <ToastContainer />
        <Switch>
         ...

Called like: toast.info('馃 Wow so easy!')

With <ToastContainer /> in a higher level component, it will stack 4 times. With it in the lower level component that calls the toast(), it stacks 3 times.
toasts

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React 16.12.0
Windows 10
Most updated Chrome

@danthegoodman1
Copy link
Author

Ok it magically stopped doing that...

@fkhadra
Copy link
Owner

fkhadra commented Mar 17, 2020

馃槄 are you using hot reload?

@fkhadra fkhadra closed this as completed Mar 17, 2020
@talentedandrew
Copy link

I encountered this same issue.

@singhaishwarya
Copy link

any update?

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

4 participants