-
Notifications
You must be signed in to change notification settings - Fork 17
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
First class Flow support #9
Comments
I remember doing exactly that in the beginning but as you said the tests are getting very obscure with errors like this that we would need to handle:
And since ReComponent works by making use of meta-programming, I'm also not sure if Flow can even be used in the sources. I think my two biggest worries with this is that:
The Flow integration right now is inspired by what's happening in the Immutable.js repo. That's why we have the separate Flow tests. That approach likely also works with TypeScript. |
This is a leftover from a time when I tried to run all tests with Flow as well. Check out #9 for arguments why this is not done right now.
This is a leftover from a time when I tried to run all tests with Flow as well. Check out #9 for arguments why this is not done right now.
This is an RFC, what do you think if we use flow for the whole
react-recomponent
codebase including tests? This would eliminate the need for maintaining the flow types separately from the actual implementation and make sure the types are always correct.I believe that having the
react-recomponent
code type-checked should also simplify the maintenance a bit by adding extra level of safety besides tests.Using flow in tests will make sure we test against the correct API.
On the downsides, it could be more difficult for some people to contribute if they don't have any experience working with
flow
before.Anyways, what is you stance on it?
The text was updated successfully, but these errors were encountered: