Skip to content

Commit 322d60a

Browse files
lynnshaoyufacebook-github-bot
authored andcommitted
modify useLazyLoadClientQuery to take a flag for exec time resolvers on or off
Reviewed By: tyao1 Differential Revision: D69335319 fbshipit-source-id: e6162dadfebf8df1b9a6f6d6076c4828f9e8d156
1 parent 2a12ee7 commit 322d60a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/relay-runtime/util/NormalizationNode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'use strict';
1313

1414
import type {ResolverFunction, ResolverModule} from './ReaderNode';
15-
import type {ConcreteRequest} from './RelayConcreteNode';
15+
import type {ConcreteRequest, ProvidedVariableType} from './RelayConcreteNode';
1616
import type {JSResourceReference} from 'JSResourceReference';
1717

1818
/**
@@ -28,6 +28,7 @@ export type NormalizationOperation = {
2828
+[string]: $ReadOnlyArray<string>,
2929
},
3030
+use_exec_time_resolvers?: boolean,
31+
+exec_time_resolvers_enabled_provider?: ProvidedVariableType,
3132
};
3233

3334
export type NormalizationHandle =

packages/relay-runtime/util/RelayConcreteNode.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export type NormalizationRootNode =
3939
| ConcreteRequest
4040
| NormalizationSplitOperation;
4141

42+
export type ProvidedVariableType = {get(): mixed};
43+
4244
export type ProvidedVariablesType = {+[key: string]: {get(): mixed}};
4345

4446
/**

0 commit comments

Comments
 (0)