Skip to content
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

Fix bug with flow-operations codegeneration and flattenGeneratedTypes config #4287

Merged
merged 5 commits into from
Jun 30, 2020

Conversation

ganemone
Copy link
Contributor

@ganemone ganemone commented Jun 24, 2020

This fixes a bug where fragment types are not generated when flattenGeneratedTypes config is provided for flow operations.

Copy link
Owner

@dotansimha dotansimha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you @ganemone ! Just one comment related to the flow comment

@dotansimha dotansimha merged commit abe7e6d into dotansimha:master Jun 30, 2020
@matikrk
Copy link

matikrk commented Jul 14, 2020

Hey
@ganemone @dotansimha
This change causing bug with flow
Right now we have 2 definitions of flow

In the generated file, you can find:

/* @flow */


// @flow

When we have smth like this we got error:
Flow: Unexpected @flow declaration. Only one per file is allowed.
and then whole generated file is incorrect

@ganemone
Copy link
Contributor Author

Is this a flow lint error? AFAIK there is no problem with having multiple flow comments in a single flow file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants