Interface: PreloadedQuery<TQuery>
Defined in: index.d.mts:24
A retained query reference produced by loadQuery.
Pass this value to createPreloadedQuery to read the query result.
Dispose it when no longer needed to release retained data and cancel
any pending network work.
Type Parameters
TQuery
TQuery extends OperationType
Properties
controls?
readonlyoptionalcontrols:OpaqueReference<{dispose:DisposeFn;environment:Environment;getNetworkError: () =>Error|null;isDisposed: () =>boolean;releaseQuery: () =>void;source:RelayObservable<GraphQLResponse> |undefined; },undefined>
Defined in: index.d.mts:40
Internal controls for retaining, disposing, and observing preload state.
fetchKey
readonlyfetchKey:string|number
Defined in: index.d.mts:34
Monotonic key used to distinguish subsequent loads.
fetchPolicy
readonlyfetchPolicy:FetchPolicy
Defined in: index.d.mts:36
Fetch policy used for the preload request.
id?
readonlyoptionalid:string|null
Defined in: index.d.mts:28
Persisted query id or cache id when available.
kind
readonlykind:"PreloadedQuery"
Defined in: index.d.mts:26
Discriminator used to identify preloaded query references.
name
readonlyname:string
Defined in: index.d.mts:30
Operation name for diagnostics and debugging.
networkCacheConfig?
readonlyoptionalnetworkCacheConfig:CacheConfig|null
Defined in: index.d.mts:38
Cache config forwarded to the network layer.
variables
readonlyvariables:VariablesOf<TQuery>
Defined in: index.d.mts:32
Variables used when preloading the query.
Last updated: 3/5/26, 7:43 PM
Edit this page on GitHub