mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[Fizz] Restore useMemoCache in renderers with support for Client APIs (#32067)
This commit is contained in:
committed by
GitHub
parent
453f505256
commit
f9f17f6c8d
@@ -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,
|
||||
|
||||
1
packages/react-server/src/ReactFizzHooks.js
vendored
1
packages/react-server/src/ReactFizzHooks.js
vendored
@@ -834,6 +834,7 @@ export const HooksDispatcher: Dispatcher = supportsClientAPIs
|
||||
useActionState,
|
||||
useFormState: useActionState,
|
||||
useHostTransitionStatus,
|
||||
useMemoCache,
|
||||
}
|
||||
: {
|
||||
readContext,
|
||||
|
||||
Reference in New Issue
Block a user