-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Add the missing @flow annotation #12764
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
@aweary I'm willing to contribute😊 I'll try to fix all the new Flow errors and let CI pass, in my free time this week. But if you do think those errors are urgent, you can just call someone familiar with the code to fix it then close this PR instead. |
Hi @aweary , I have fixed most of the flow errors, but there are three errors remain to be discussed. They are:
How do we solve them? |
@ryerh I'm sorry to duplicate your work. I should've read this PR when I saw it on notifications. I initially thought the PR is just a one-line change (from its title) and didn't look at it, and then forgot about it. |
I will! I had pinged @acdlite but he probably didn't see it, I'll be sure to sound the alarm more urgently next time 👍 |
I mean on FB workplace :-) I don't think either of us check GH mentions, there's way too much noise and we can't keep up. |
It's a tradeoff. But writing this kind of code isn't just appeasing the type checker, it legitimately forces you to deal with potentially buggy code paths by making them safer or more explicit. |
Add
@flow
annotation topackages/react-reconciler/src/ReactFiber.js
.