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 Apollo components customizable #1843

Merged
merged 3 commits into from May 13, 2019

Conversation

jlkiri
Copy link
Contributor

@jlkiri jlkiri commented May 10, 2019

This PR addresses the following issue: #1834

The default suffix is Component. It should be possible to specify the desired suffix (string) via customSuffix property in plugin config in codegen.yml.

I only made changes to the typescript-react-apollo plugin.

@jlkiri jlkiri marked this pull request as ready for review May 10, 2019 05:53
@dotansimha
Copy link
Owner

Hi @jlkiri ! Thank you for your contribution!
I think componentSuffix could be a better name for this, what do you think?

@jlkiri
Copy link
Contributor Author

jlkiri commented May 12, 2019

@dotansimha This indeed sounds like a better name. I'll change it.

@dotansimha
Copy link
Owner

Thanks @jlkiri !

@dotansimha dotansimha merged commit c84bcc4 into dotansimha:master May 13, 2019
@jlkiri jlkiri deleted the add-custom-suffix branch May 13, 2019 06:24
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

2 participants