Skip to content

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

Description

@jmancherje

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions