Skip to content

Commit

Permalink
Ignore @dangerously_unaliased_fixme when comparing structs
Browse files Browse the repository at this point in the history
Reviewed By: gordyf

Differential Revision: D64410096

fbshipit-source-id: 08a5c9934477e145742086af00694f201b4b6191
  • Loading branch information
captbaritone authored and facebook-github-bot committed Oct 15, 2024
1 parent cf8a616 commit af35418
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type UserSearchResult implements Node {
==================================== OUTPUT ===================================
//- __generated__/ModuleNameQuery.graphql.ts
/**
* <auto-generated> SignedSource<<4f0ee5ff806a9f25428b594d432a805a>>
* <auto-generated> SignedSource<<c2ef44a639a747515165cfc0cc27a1d4>>
* @lightSyntaxTransform
* @nogrep
*/
Expand Down Expand Up @@ -171,33 +171,9 @@ const node: ConcreteRequest = {
"kind": "ScalarField",
"name": "alias",
"storageKey": null
}
],
"type": "User",
"abstractKey": null
},
{
"kind": "InlineFragment",
"selections": [
},
{
"kind": "InlineFragment",
"selections": [
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "alias",
"storageKey": null
}
],
"type": "UserSearchResult",
"abstractKey": null
}
],
"type": "Node",
"kind": "TypeDiscriminator",
"abstractKey": "__isNode"
}
],
Expand Down
4 changes: 3 additions & 1 deletion compiler/crates/relay-transforms/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use schema::Type;
use crate::catch_directive::CATCH_DIRECTIVE_NAME;
use crate::client_extensions::CLIENT_EXTENSION_DIRECTIVE_NAME;
use crate::connections::ConnectionMetadataDirective;
use crate::fragment_alias_directive::FRAGMENT_DANGEROUSLY_UNALIAS_DIRECTIVE_NAME;
use crate::handle_fields::HANDLE_FIELD_DIRECTIVE_NAME;
use crate::inline_data_fragment::InlineDirectiveMetadata;
use crate::refetchable_fragment::RefetchableMetadata;
Expand Down Expand Up @@ -107,7 +108,7 @@ lazy_static! {
ProvidedVariableMetadata::directive_name(),
FragmentAliasMetadata::directive_name(),
];
static ref DIRECTIVES_SKIPPED_IN_NODE_IDENTIFIER: [DirectiveName; 9] = [
static ref DIRECTIVES_SKIPPED_IN_NODE_IDENTIFIER: [DirectiveName; 10] = [
*CATCH_DIRECTIVE_NAME,
*CLIENT_EXTENSION_DIRECTIVE_NAME,
ConnectionMetadataDirective::directive_name(),
Expand All @@ -117,6 +118,7 @@ lazy_static! {
*INTERNAL_METADATA_DIRECTIVE,
*ARGUMENT_DEFINITION,
*REQUIRED_DIRECTIVE_NAME,
*FRAGMENT_DANGEROUSLY_UNALIAS_DIRECTIVE_NAME
];
static ref RELAY_CUSTOM_INLINE_FRAGMENT_DIRECTIVES: [DirectiveName; 8] = [
*CLIENT_EXTENSION_DIRECTIVE_NAME,
Expand Down

0 comments on commit af35418

Please sign in to comment.