@@ -761,6 +761,13 @@ interface FieldSpecifier {
761
761
variables? : Record <string , any >;
762
762
}
763
763
764
+ // @public (undocumented)
765
+ type FragmentCacheKey = [
766
+ cacheId : string ,
767
+ fragment : DocumentNode ,
768
+ stringifiedVariables : string
769
+ ];
770
+
764
771
// @public (undocumented)
765
772
interface FragmentKey {
766
773
// (undocumented)
@@ -1888,10 +1895,11 @@ class SuspenseCache {
1888
1895
constructor (options ? : SuspenseCacheOptions );
1889
1896
// (undocumented)
1890
1897
add(cacheKey : CacheKey , queryRef : InternalQueryReference <unknown >): void ;
1898
+ // Warning: (ae-forgotten-export) The symbol "FragmentCacheKey" needs to be exported by the entry point index.d.ts
1891
1899
// Warning: (ae-forgotten-export) The symbol "FragmentReference" needs to be exported by the entry point index.d.ts
1892
1900
//
1893
1901
// (undocumented)
1894
- getFragmentRef<TData >(cacheKey : CacheKey , createObservable : () => Observable <WatchFragmentResult <TData >>): FragmentReference <TData >;
1902
+ getFragmentRef<TData >(cacheKey : FragmentCacheKey , createObservable : () => Observable <WatchFragmentResult <TData >>): FragmentReference <TData >;
1895
1903
// (undocumented)
1896
1904
getQueryRef<TData = any >(cacheKey : CacheKey , createObservable : () => ObservableQuery <TData >): InternalQueryReference <TData >;
1897
1905
}
@@ -2118,6 +2126,26 @@ interface UseReadQueryResult<TData = unknown> {
2118
2126
networkStatus: NetworkStatus ;
2119
2127
}
2120
2128
2129
+ // Warning: (ae-forgotten-export) The symbol "UseSuspenseFragmentOptions" needs to be exported by the entry point index.d.ts
2130
+ // Warning: (ae-forgotten-export) The symbol "UseSuspenseFragmentResult" needs to be exported by the entry point index.d.ts
2131
+ //
2132
+ // @public (undocumented)
2133
+ function useSuspenseFragment<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : UseSuspenseFragmentOptions <TData , TVariables >): UseSuspenseFragmentResult <TData >;
2134
+
2135
+ // @public (undocumented)
2136
+ interface UseSuspenseFragmentOptions <TData , TVars > extends Omit <Cache_2 .DiffOptions <NoInfer <TData >, NoInfer <TVars >>, " id" | " query" | " optimistic" | " previousResult" | " returnPartialData" >, Omit <Cache_2 .ReadFragmentOptions <TData , TVars >, " id" | " variables" | " returnPartialData" > {
2137
+ client? : ApolloClient <any >;
2138
+ // (undocumented)
2139
+ from: StoreObject | Reference | string ;
2140
+ // (undocumented)
2141
+ optimistic? : boolean ;
2142
+ }
2143
+
2144
+ // @public (undocumented)
2145
+ type UseSuspenseFragmentResult <TData > = {
2146
+ data: TData ;
2147
+ };
2148
+
2121
2149
// Warning: (ae-forgotten-export) The symbol "SuspenseQueryHookOptions" needs to be exported by the entry point index.d.ts
2122
2150
// Warning: (ae-forgotten-export) The symbol "UseSuspenseQueryResult" needs to be exported by the entry point index.d.ts
2123
2151
//
@@ -2245,6 +2273,10 @@ interface WrappableHooks {
2245
2273
//
2246
2274
// (undocumented)
2247
2275
useReadQuery: typeof useReadQuery ;
2276
+ // Warning: (ae-forgotten-export) The symbol "useSuspenseFragment" needs to be exported by the entry point index.d.ts
2277
+ //
2278
+ // (undocumented)
2279
+ useSuspenseFragment: typeof useSuspenseFragment ;
2248
2280
// Warning: (ae-forgotten-export) The symbol "useSuspenseQuery" needs to be exported by the entry point index.d.ts
2249
2281
//
2250
2282
// (undocumented)
0 commit comments