-
Notifications
You must be signed in to change notification settings - Fork 38
Remove defaultProps (use default parameters) #134
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
Conversation
@compulim any chance you could review this? |
Sorry, my real world job is very busy recently. I will take a look at this as soon as I am freed up. 🙇🏻♂️ This is a very good move, getting rid of I think @koteus spent some time thinking |
Hi @compulim I think you mean the default value "smooth" for Here is the line:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @compulim is there anything I could do to help you review this PR? |
thanks for working on this @koteus 🤝 |
hate to be that person but is there anything holding this back? @compulim the code looks fine, if you can approve the CI this can be merged and a new release can be cut. |
Hello 👋 https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops Merging this PR will allow |
Really hope this can be merged before React 19 release. |
I rebased my PR on the latest main and I had to create a new PR because my this one was initiated from the |
This is still an issue. |
any updates here? |
You can use this patch: #141 (comment) |
Hello, in case you are still looking for a solution, I posted info about my forked version here #141 (comment) Basically it works with React 19 without warnings, but I rewrote some stuff so there are breaking changes!! |
This fixes React warnings: "Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."