Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Enums not generating correctly with Relay 8 #164

Closed
@mrtnzlml

Description

@mrtnzlml

Hi, we tried to upgrade Relay to version 8 with this language plugin but the generated enums look a bit fishy, see:

@@ -2,7 +2,7 @@
 
 import { ReaderFragment } from "relay-runtime";
 import { FragmentRefs } from "relay-runtime";
-export type LabelColor = "BLUE" | "GRAY" | "GREEN" | "PURPLE" | "RED" | "YELLOW" | "%future added value";
+export type LabelColor = "%future added value" | "%future added value" | "%future added value" | "BLUE" | "GRAY" | "GREEN" | "PURPLE" | "RED" | "YELLOW" | "%future added value";
 export type Label_label = {
     readonly colorName: LabelColor | null;
     readonly name: string | null;

Notice the %future added value placeholder duplicates. Changelog which mentions the enums as well: https://github.com/facebook/relay/releases/tag/v8.0.0

Thanks for having a look! :)

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