Closed rj-david closed 6 years ago
This avoids this bug: https://github.com/schiehll/react-alert/issues/79
With this fix, the setTimeout() function is cleared whenever the component is unmounted. This also supports multiple alerts.
Please disregard the changes in .gitignore. The fix only involved src/Provider.js
Hey, @rj-david! Thank you for the PR!
I will review your changes so we can merge it.
This avoids this bug: https://github.com/schiehll/react-alert/issues/79
With this fix, the setTimeout() function is cleared whenever the component is unmounted. This also supports multiple alerts.
Please disregard the changes in .gitignore. The fix only involved src/Provider.js