facebook / facebook/relay

[relay-compiler] Question about a possible bug in writeRelayGeneratedFile

Open
#3,000 1 comment 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I noticed a strange behavior caused by this `if`: https://github.com/facebook/relay/blob/master/packages/relay-compiler/codegen/writeRelayGeneratedFile.js#L98
in practice the fragment nodes are rewritten every time it is compiled even if they have not been modified.

Is this the expected behavior or is it a bug?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.