Skip to content

Commit

Permalink
Add onSubscribe to CacheConfig
Browse files Browse the repository at this point in the history
Reviewed By: tyao1

Differential Revision: D27091424

fbshipit-source-id: 45f64f1c801be0327fddd6f36f92c22beaf52466
  • Loading branch information
Michael Dietz authored and facebook-github-bot committed Mar 26, 2021
1 parent 7f65de7 commit 0451857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/relay-runtime/util/RelayRuntimeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export type VariablesOf<T: OperationType> = $ElementType<T, 'variables'>;
* in milliseconds. (This value will be passed to setTimeout.)
* - `liveConfigId`: causes a query to live update by calling GraphQLLiveQuery,
* it represents a configuration of gateway when doing live query
* - `onSubscribe`: Not in use.
* - `metadata`: user-supplied metadata.
* - `transactionId`: a user-supplied value, intended for use as a unique id for
* a given instance of executing an operation.
Expand All @@ -57,6 +58,7 @@ export type CacheConfig = {|
force?: ?boolean,
poll?: ?number,
liveConfigId?: ?string,
onSubscribe?: () => void,
metadata?: {[key: string]: mixed, ...},
transactionId?: ?string,
|};
Expand Down

0 comments on commit 0451857

Please sign in to comment.