Skip to content

Commit

Permalink
modify useLazyLoadClientQuery to take a flag for exec time resolvers …
Browse files Browse the repository at this point in the history
…on or off

Reviewed By: tyao1

Differential Revision: D69335319

fbshipit-source-id: e6162dadfebf8df1b9a6f6d6076c4828f9e8d156
  • Loading branch information
lynnshaoyu authored and facebook-github-bot committed Feb 21, 2025
1 parent 2a12ee7 commit 322d60a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/relay-runtime/util/NormalizationNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'use strict';

import type {ResolverFunction, ResolverModule} from './ReaderNode';
import type {ConcreteRequest} from './RelayConcreteNode';
import type {ConcreteRequest, ProvidedVariableType} from './RelayConcreteNode';
import type {JSResourceReference} from 'JSResourceReference';

/**
Expand All @@ -28,6 +28,7 @@ export type NormalizationOperation = {
+[string]: $ReadOnlyArray<string>,
},
+use_exec_time_resolvers?: boolean,
+exec_time_resolvers_enabled_provider?: ProvidedVariableType,
};

export type NormalizationHandle =
Expand Down
2 changes: 2 additions & 0 deletions packages/relay-runtime/util/RelayConcreteNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export type NormalizationRootNode =
| ConcreteRequest
| NormalizationSplitOperation;

export type ProvidedVariableType = {get(): mixed};

export type ProvidedVariablesType = {+[key: string]: {get(): mixed}};

/**
Expand Down

0 comments on commit 322d60a

Please sign in to comment.