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

Warning: ToastContainer: Support for defaultProps #651

Open
pi0neerpat opened this issue Jul 22, 2024 · 1 comment
Open

Warning: ToastContainer: Support for defaultProps #651

pi0neerpat opened this issue Jul 22, 2024 · 1 comment
Assignees
Labels

Comments

@pi0neerpat
Copy link
Member

const ToastContainer = lazy(() => import('react-toastify').then((module) => ({ default: module.ToastContainer })))
Warning: ToastContainer: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
@jahabeebs
Copy link
Member

@pi0neerpat this issue was fixed in version 10.0.0 and we're on 6.0.9. I'll have to spend some time fixing this because the way our ToastPayload component is rendered is different now and it hasn't been showing up in the new version

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

No branches or pull requests

2 participants