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

graphql-naming rule doesn't seem to work on fragments in useFragment hook #137

Open
jmancherje opened this issue Mar 3, 2023 · 0 comments

Comments

@jmancherje
Copy link

I'm not entirely sure because the naming linting does apply to query names, but not fragment names (on relay v14.0.0)

In the code for the graphql-naming rule I see this:

const CREATE_CONTAINER_FUNCTIONS = new Set([
  'createFragmentContainer',
  'createPaginationContainer',
  'createRefetchContainer'
]);

It seems like it's just checking these container functions which aren't in the latest relay which uses hooks like useFragment.

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

No branches or pull requests

1 participant