Skip to content

Remove context params from class component ctors#14366

Merged
vogievetsky merged 1 commit intoapache:masterfrom
jgoz:remove-react-context-params
Jun 5, 2023
Merged

Remove context params from class component ctors#14366
vogievetsky merged 1 commit intoapache:masterfrom
jgoz:remove-react-context-params

Conversation

@jgoz
Copy link
Contributor

@jgoz jgoz commented Jun 2, 2023

Description

Removes context constructor parameters from React components. These have been deprecated since React 16.3 and were only relevant if you defined contextTypes on the class itself. Including these parameters will actually cause TypeScript errors with future React/TS versions.


This PR has:

  • been self-reviewed.

@vogievetsky vogievetsky merged commit c14e54c into apache:master Jun 5, 2023
@jgoz jgoz deleted the remove-react-context-params branch June 5, 2023 19:21
@abhishekagarwal87 abhishekagarwal87 added this to the 27.0 milestone Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants