File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -394,7 +394,9 @@ export type Dispatcher = {
394
394
create: () => ( ( ) => void ) | void ,
395
395
deps : Array < mixed > | void | null,
396
396
): void,
397
+ // TODO: Non-nullable once `enableUseEffectEventHook` is on everywhere.
397
398
useEffectEvent?: < Args , F : ( ...Array < Args > ) => mixed > ( callback : F ) => F ,
399
+ // TODO: Non-nullable once `enableUseResourceEffectHook` is on everywhere.
398
400
useResourceEffect ?: (
399
401
create : ( ) => mixed ,
400
402
createDeps : Array < mixed > | void | null,
@@ -429,7 +431,7 @@ export type Dispatcher = {
429
431
getServerSnapshot ?: ( ) => T ,
430
432
) : T ,
431
433
useId ( ) : string ,
432
- useCacheRefresh ? : ( ) => < T > (?() => T , ?T ) => void ,
434
+ useCacheRefresh : ( ) => < T > (?() => T , ?T ) => void ,
433
435
useMemoCache : ( size : number ) => Array < any > ,
434
436
useHostTransitionStatus: () => TransitionStatus ,
435
437
useOptimistic : < S , A > (
Original file line number Diff line number Diff line change @@ -835,6 +835,7 @@ export const HooksDispatcher: Dispatcher = supportsClientAPIs
835
835
useFormState : useActionState ,
836
836
useHostTransitionStatus ,
837
837
useMemoCache ,
838
+ useCacheRefresh ,
838
839
}
839
840
: {
840
841
readContext ,
You can’t perform that action at this time.
0 commit comments