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

React 19 support: Migrate away from defaultProps #2580

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ashharrison90
Copy link

@ashharrison90 ashharrison90 commented Jun 3, 2024

Hi! Love the library ❤️

This PR migrates away from using defaultProps in connected-droppable and moves the default prop logic into droppable itself. This is because React 19 is removing support for defaultProps in functional components.

I've seen the maintenance notice in the repo and totally understand if you don't want to go forward with merging/releasing this. But I thought I'd raise it anyway since the scope of the changes is quite small and without it the library will no longer work for projects using React 19 without a custom npm/yarn patch applied on top.

Fixes #2563
Fixes #2576

Copy link

atlassian-cla-bot bot commented Jun 3, 2024

Hooray! All contributors have signed the CLA.

@antoine-souesme
Copy link

Thank you for taking the time !

@cmhampton-meridian
Copy link

Hello everyone. Will this change be accepted? We are using this package and we will eventually have to replace it with something else if this is not updated. We happy with how this one works, so we would prefer to continue using it.

@lawrencenika
Copy link

got the same error saying defaultProps will be removed from memo components on my NextJS 14 project, looking forward to this merged soon! Thanks team for the hardwork!

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