fkhadra / react-toastify

React notification made easy 🚀 !
https://fkhadra.github.io/react-toastify/introduction
MIT License
12.33k stars 676 forks source link

Notifications do not render after route change in Next.js 13+ build #1058

Open tayloraucoin opened 4 months ago

tayloraucoin commented 4 months ago

Do you want to request a feature or report a bug? BUG

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:

  1. next build && next start
  2. Any async function (server request for example)
  3. router.push('/page-name')
  4. render toast notification

What is the expected behavior? Notifications to render like normal.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React? "next": "14.0.1", "react": "^18", "react-dom": "^18", "react-toastify": "^9.1.3",