You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
#2984
Modified the compilation of the artifacts in order to generate a unique identifier (md5 text) for the 'Request' nodes.
modified writeRelayGeneratedFile:
eliminate the switch, the node is always of type Request because inside 'if (generatedNode.kind === RelayConcreteNode.REQUEST) {'
https://github.com/facebook/relay/blob/master/packages/relay-compiler/codegen/writeRelayGeneratedFile.js#L98
Pull Request resolved: #2985
Reviewed By: josephsavona
Differential Revision: D19373941
Pulled By: kassens
fbshipit-source-id: 3bb7ada15fb6ee781ba1838e806294d74de6afe7
Now the RequestIdentifier is created by concatenating the id or text of RequestParameters with the serialization of the variables.
https://github.com/facebook/relay/blob/master/packages/relay-runtime/util/getRequestIdentifier.js#L27-L39
When there is no id, the RequestIdentifier is a very long string (all the text of the query).
Wouldn't it be better to use the query hash value?
Let me know and I'll proceed with creating the PR.
The text was updated successfully, but these errors were encountered: