Skip to content

fix(deprecation): disuse deprecated React functional component defaultProps feature#452

Closed
klarstrup wants to merge 3 commits intohello-pangea:mainfrom
klarstrup:main
Closed

fix(deprecation): disuse deprecated React functional component defaultProps feature#452
klarstrup wants to merge 3 commits intohello-pangea:mainfrom
klarstrup:main

Conversation

@klarstrup
Copy link
Contributor

In the next major React version, defaultProps will only be supported on class components. react-redux's connect returns a functional component which will not support this in that future.

see https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md and facebook/react#16210

fixes #450

In the next major React version, `defaultProps` will only be supported on class components.
`react-redux`'s `connect` returns a functional component which will not support this in that future.

fixes hello-pangea#450
@vercel
Copy link

vercel bot commented Jan 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
dnd ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 28, 2023 at 2:56PM (UTC)

@xiaotianxt
Copy link

I managed to fix this by using pnpm@8.1.1 #544

@joao-vasconcelos
Copy link

Hello, any update on this?
Thank you for keeping this package working <3

@namnhfreelancer
Copy link

Any update about merging it ?

@100terres
Copy link
Collaborator

100terres commented Jun 30, 2023

We made the required change in this PR and it will be part of the next release! 😊

Thank you for your contribution!

@100terres 100terres closed this Jun 30, 2023
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