Open
Description
Code setup as follows:
...
import type { DashboardPageUserViewedDashboardMutation } from "./__generated__/DashboardPageUserViewedDashboardMutation.graphql"
...
export default function DashboardPage() {
...
const [userViewedDashboardMutation] =
useMutation<DashboardPageUserViewedDashboardMutation>(graphql`
mutation DashboardPageUserViewedDashboardMutation {
userViewedDashboard {
viewedDashboard
}
}
`)
...
}
...
Setting "relay/generated-flow-types": "error"
Gives the following issue:

I see a test case for the failure condition here https://github.com/relayjs/eslint-plugin-relay/blob/main/test/generated-typescript-types.js#L538-L552 but no corresponding passing condition test.
From what I can see in the source code here https://github.com/relayjs/eslint-plugin-relay/blob/main/src/rule-generated-flow-types.js#L567-L583 what I have should not be an issue.
Looks like this was added by @tyao1 via 3d1ebcd so maybe they can advise.
Metadata
Metadata
Assignees
Labels
No labels