-
Notifications
You must be signed in to change notification settings - Fork 64
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
FlowType Support #51
Comments
Have added flow types to the build, which fixes like 2/3 of this but doesn't quite get us all the way :(. |
Without Flowtype support, <If condition={movie}>
<div>{movie.name}</div>
</If> (where I am not sure if it possible to solve this in Flowtype. |
@AlexGilleran Can we do something to teach |
I'm open to suggestions :(. |
I opened an issue with a question in |
@AlexGilleran @apsavin Has there been any progress on this? |
Which is fair enough, but also :(. |
Although maybe facebook/flow#1515 can save us eventually. |
Just making this to keep track of it, I don't have a complete solution at this stage.
FlowType doesn't like JSX-Control-Statements in two ways - the first is that we're effectively using global types which is easily fixed with a type declaration:
But the problem is the "each" and "index" of the For won't be known to FlowType and it'll not only fail, but also not support type checking which sucks.
Best I have so far is to just declare those variables in the render function with the right type.
The text was updated successfully, but these errors were encountered: