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: ToastableWrapper: Support for defaultProps will be removed from function components in a future major release. #11

Open
Axolem opened this issue Jul 16, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Axolem
Copy link

Axolem commented Jul 16, 2024

Use JavaScript default parameters instead. in ToastableWrapper in Unknown (created by Toastable)

@enestatli enestatli self-assigned this Jul 30, 2024
@enestatli enestatli added the bug Something isn't working label Jul 30, 2024
@yashtops
Copy link

+1

@arscslvt
Copy link

same here, don't know what it means

@mariomurrent-softwaresolutions
Copy link

mariomurrent-softwaresolutions commented Nov 23, 2024

+1

@Axolem @yashtops @arscslvt Is it the same for you that the toastable is not shown as well?

@arscslvt
Copy link

The toastable shows and works well, except for the warning not to use defaultProps, which will be deprecated in future versions. I can’t understand where I use it or what it refers to.

@jerone
Copy link

jerone commented Dec 12, 2024

Same issue. As seen here, there is an alternative solution.
It looks like the issue is about this line:

ToastableWrapper.defaultProps = defaultProps;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants