File tree 1 file changed +11
-6
lines changed
packages/react-reconciler/src 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 7
7
* @flow
8
8
*/
9
9
10
- import { enableCreateEventHandleAPI } from 'shared/ReactFeatureFlags' ;
10
+ import {
11
+ enableCreateEventHandleAPI ,
12
+ enableUseEffectEventHook ,
13
+ } from 'shared/ReactFeatureFlags' ;
11
14
12
15
export type Flags = number ;
13
16
@@ -77,17 +80,19 @@ export const MountPassiveDev = /* */ 0b1000000000000000000000000000
77
80
// don't contain effects, by checking subtreeFlags.
78
81
79
82
export const BeforeMutationMask : number =
80
- // TODO: Remove Update flag from before mutation phase by re-landing Visibility
81
- // flag logic (see #20043)
82
- Update |
83
83
Snapshot |
84
84
( enableCreateEventHandleAPI
85
85
? // createEventHandle needs to visit deleted and hidden trees to
86
86
// fire beforeblur
87
87
// TODO: Only need to visit Deletions during BeforeMutation phase if an
88
88
// element is focused.
89
- ChildDeletion | Visibility
90
- : 0 ) ;
89
+ Update | ChildDeletion | Visibility
90
+ : enableUseEffectEventHook
91
+ ? // TODO: The useEffectEvent hook uses the snapshot phase for clean up but it
92
+ // really should use the mutation phase for this or at least schedule an
93
+ // explicit Snapshot phase flag for this.
94
+ Update
95
+ : 0 ) ;
91
96
92
97
export const MutationMask =
93
98
Placement |
You can’t perform that action at this time.
0 commit comments