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

Make suffix of generated React components customizable #1834

Closed
jlkiri opened this issue May 8, 2019 · 1 comment
Closed

Make suffix of generated React components customizable #1834

jlkiri opened this issue May 8, 2019 · 1 comment
Labels
plugins waiting-for-release Fixed/resolved, and waiting for the next stable release

Comments

@jlkiri
Copy link
Contributor

jlkiri commented May 8, 2019

Is your feature request related to a problem? Please describe.

Since components generated by typescript-react-apollo all have Component suffix in their name, it is not easy to distinguish between components that do the query work and those that don't in my code. It would be nice to still be able to distinguish the query components from others by using the Query suffix, e.g. not MyItemsComponent but MyItemsQuery. However, there is no way to specify this in the plugin config.

Describe the solution you'd like

Make it possible to specify customSuffix in plugin config inside codegen.yml. E.g. customSuffix: 'Query'.

Describe alternatives you've considered

Additional context

@dotansimha
Copy link
Owner

Available in 1.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugins waiting-for-release Fixed/resolved, and waiting for the next stable release
Projects
None yet
Development

No branches or pull requests

2 participants