[Fizz] Restore useMemoCache in renderers with support for Client APIs (#32067)

This commit is contained in:
Sebastian "Sebbie" Silbermann
2025-01-14 22:59:52 +01:00
committed by GitHub
parent 453f505256
commit f9f17f6c8d
2 changed files with 2 additions and 1 deletions

View File

@@ -430,7 +430,7 @@ export type Dispatcher = {
): T,
useId(): string,
useCacheRefresh?: () => <T>(?() => T, ?T) => void,
useMemoCache?: (size: number) => Array<any>,
useMemoCache: (size: number) => Array<any>,
useHostTransitionStatus: () => TransitionStatus,
useOptimistic: <S, A>(
passthrough: S,

View File

@@ -834,6 +834,7 @@ export const HooksDispatcher: Dispatcher = supportsClientAPIs
useActionState,
useFormState: useActionState,
useHostTransitionStatus,
useMemoCache,
}
: {
readContext,