Relay: Relax constraint of unique file names in Relay Modern

Created on 11 Sep 2017  路  3Comments  路  Source: facebook/relay

Relay Classic / Compat require file names to match fragment names to ensure Relay Compat mechanisms work correctly. However in Relay Modern this doesn't necessarily need to be true.

There have been a few issues opened in the past about this issue, so it would be great to fix this with a pull request.

Note that fragment names should still continue to be unique across a compiled app.

help wanted wontfix

Most helpful comment

For anyone interested in sending a PR, we are supportive of adding a config option (via relay-config) that allows an application to disable the document name validation.

All 3 comments

can relay-compiler support .jsx?

For anyone interested in sending a PR, we are supportive of adding a config option (via relay-config) that allows an application to disable the document name validation.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings