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

Update Flow to 0.256.0 #3405

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

Conversation

reosarevok
Copy link
Member

https://github.com/facebook/flow/releases/tag/v0.251.0
https://github.com/facebook/flow/releases/tag/v0.251.1

Most changes are due to the deprecation of React.AbstractComponent which needs to be replaced with component types.

@reosarevok reosarevok added the Refactoring Refactoring-only PRs (eslint fixes etc) label Nov 4, 2024
@mwiencek mwiencek changed the title [WIP] Update Flow to 0.251.1 Update Flow to 0.256.0 Feb 27, 2025
@mwiencek mwiencek marked this pull request as ready for review February 27, 2025 18:20
Copy link
Member

@mwiencek mwiencek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally had time to look into the 0.251.0 issues, should be good now.

I also ended up changing most of the React.ComponentType<> additions to use component() instead.

React.memo(_Autocomplete2);

export default Autocomplete2;

// XXX Until Flow supports https://github.com/facebook/flow/issues/7672
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to outright remove all of these, since the new component syntax supports type parameters.

@@ -556,7 +556,7 @@ type ErrorMessagePropsT = {
};

export const ErrorMessage:
React.AbstractComponent<ErrorMessagePropsT, mixed> =
component(ref: React.RefSetter<mixed>, ...ErrorMessagePropsT) =
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't mixed the default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Refactoring-only PRs (eslint fixes etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants