Skip to content

Commit 6059660

Browse files
rubennortefacebook-github-bot
authored andcommitted
Ship feature flag shouldSkipStateUpdatesForLoopingAnimations by default (#48224)
Summary: Pull Request resolved: #48224 Changelog: [General][Fixed] Removed unnecessary state updates in React to reflect the current state of looping animations. This enables that feature flag by default and prepares for an incoming cleanup. Reviewed By: yungsters, dmytrorykun Differential Revision: D67109980 fbshipit-source-id: 3c98731221b0fb01a8d49d537df859fe23c0ae45
1 parent 11c49d6 commit 6059660

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ const definitions: FeatureFlagDefinitions = {
538538
},
539539
},
540540
shouldSkipStateUpdatesForLoopingAnimations: {
541-
defaultValue: false,
541+
defaultValue: true,
542542
metadata: {
543543
dateAdded: '2024-07-25',
544544
description:

‎packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<0c6bca5d443beff11d70a5cba470607f>>
7+
* @generated SignedSource<<b2dbe24b891b3e41ffe50b095806caf8>>
88
* @flow strict
99
*/
1010

@@ -158,7 +158,7 @@ export const isLayoutAnimationEnabled: Getter<boolean> = createJavaScriptFlagGet
158158
/**
159159
* If the animation is within Animated.loop, we do not send state updates to React.
160160
*/
161-
export const shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean> = createJavaScriptFlagGetter('shouldSkipStateUpdatesForLoopingAnimations', false);
161+
export const shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean> = createJavaScriptFlagGetter('shouldSkipStateUpdatesForLoopingAnimations', true);
162162

163163
/**
164164
* Enables use of AnimatedObject for animating transform values.

0 commit comments

Comments
 (0)