-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
base: master
Are you sure you want to change the base?
Update Flow to 0.256.0 #3405
Conversation
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.
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 |
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.
Was able to outright remove all of these, since the new component syntax supports type parameters.
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<Props, Instance>`, which is now replaced with `component(ref: React.RefSetter<Instance>, ...Props)`. Co-Authored-By: Michael Wiencek <[email protected]>
@@ -556,7 +556,7 @@ type ErrorMessagePropsT = { | |||
}; | |||
|
|||
export const ErrorMessage: | |||
React.AbstractComponent<ErrorMessagePropsT, mixed> = | |||
component(ref: React.RefSetter<mixed>, ...ErrorMessagePropsT) = |
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.
Isn't mixed
the default?
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.