File tree 1 file changed +0
-11
lines changed
packages/react-native/Libraries/Animated
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -268,10 +268,6 @@ function useAnimatedPropsLifecycle_layoutEffects(node: AnimatedProps): void {
268
268
const isUnmountingRef = useRef < boolean > ( false ) ;
269
269
270
270
useEffect ( ( ) => {
271
- // It is ok for multiple components to call `flushQueue` because it noops
272
- // if the queue is empty. When multiple animated components are mounted at
273
- // the same time. Only first component flushes the queue and the others will noop.
274
- NativeAnimatedHelper . API . flushQueue ( ) ;
275
271
let drivenAnimationEndedListener : ?EventSubscription = null ;
276
272
if ( node . __isNative ) {
277
273
drivenAnimationEndedListener =
@@ -326,13 +322,6 @@ function useAnimatedPropsLifecycle_insertionEffects(node: AnimatedProps): void {
326
322
const prevNodeRef = useRef < ?AnimatedProps > ( null ) ;
327
323
const isUnmountingRef = useRef < boolean > ( false ) ;
328
324
329
- useEffect ( ( ) => {
330
- // It is ok for multiple components to call `flushQueue` because it noops
331
- // if the queue is empty. When multiple animated components are mounted at
332
- // the same time. Only first component flushes the queue and the others will noop.
333
- NativeAnimatedHelper . API . flushQueue ( ) ;
334
- } ) ;
335
-
336
325
useInsertionEffect ( ( ) => {
337
326
isUnmountingRef . current = false ;
338
327
return ( ) => {
You can’t perform that action at this time.
0 commit comments