-
-
Notifications
You must be signed in to change notification settings - Fork 303
Extracted flow 0.53 props from react component are not recognized #207
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
Comments
Please change the title to something referencing Flow 53, hopefully this will get everyone's attention |
@rosskevin Changed it, but I doubt that this helps... |
That's an easy fix.
should be instead typePath = superTypes.get('params').get(0); Thank you for opening the issue! |
Do you want me to fix it, or do you do it on your own? |
Feel free to make a PR. We should also make sure it works also with old and new flow versions. something like this. const params = superTypes.get('params');
if (params.value.length === 3) {
typePath = params.get(1);
} else {
typePath = params.get(0);
} |
I created a PR which fixes this #209 |
I have just changed our codebase to the new flow types for React (meaning to use stuff as described here).
So my react classes now look like that:
These props are then not recognized by the library anymore... I am using version 2.17.0.
The text was updated successfully, but these errors were encountered: