Skip to content

Commit

Permalink
Expose networkCacheConfig in preloaded query references
Browse files Browse the repository at this point in the history
Reviewed By: jstejada

Differential Revision: D21449796

fbshipit-source-id: d1bce4ccd97dd232f3cd00d296eca583afbe7697
  • Loading branch information
rubennorte authored and facebook-github-bot committed May 18, 2020
1 parent f7ba970 commit 605ac7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/relay-experimental/EntryPointTypes.flow.js
Expand Up @@ -54,6 +54,7 @@ export type PreloadedQuery<
+environmentProviderOptions: ?TEnvironmentProviderOptions,
+fetchKey: ?string | ?number,
+fetchPolicy: PreloadFetchPolicy,
+networkCacheConfig?: ?CacheConfig,
+id: ?string,
+name: string,
+source: ?Observable<GraphQLResponse>,
Expand Down
1 change: 1 addition & 0 deletions packages/relay-experimental/preloadQuery_DEPRECATED.js
Expand Up @@ -114,6 +114,7 @@ function preloadQuery<TQuery: OperationType, TEnvironmentProviderOptions>(
environmentProviderOptions,
fetchKey: queryEntry.fetchKey,
fetchPolicy: queryEntry.fetchPolicy,
networkCacheConfig: options?.networkCacheConfig,
id: queryEntry.id,
name: queryEntry.name,
source,
Expand Down

0 comments on commit 605ac7f

Please sign in to comment.