[Fizz] Restore `useMemoCache` in renderers with support for Client APIs (#32067)
Sebastian "Sebbie" Silbermann committed
Jan 14, 2025 at 22:59 UTC
f9f17f6c8d1e747a3e242b36aa35feae31c55f75
2 files changed
+2
-1
packages/react-reconciler/src/ReactInternalTypes.js
+1
-1
@@ -430,7 +430,7 @@ export type Dispatcher = {
430
): T,
431
useId(): string,
432
useCacheRefresh?: () => <T>(?() => T, ?T) => void,
433
- useMemoCache?: (size: number) => Array<any>,
433
+ useMemoCache: (size: number) => Array<any>,
434
useHostTransitionStatus: () => TransitionStatus,
435
useOptimistic: <S, A>(
436
passthrough: S,
packages/react-server/src/ReactFizzHooks.js
+1
@@ -834,6 +834,7 @@ export const HooksDispatcher: Dispatcher = supportsClientAPIs
834
useActionState,
835
useFormState: useActionState,
836
useHostTransitionStatus,
837
+ useMemoCache,
838
}
839
: {
840
readContext,