Skip to content

Commit

Permalink
Ship feature flag shouldSkipStateUpdatesForLoopingAnimations by defau…
Browse files Browse the repository at this point in the history
…lt (#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
  • Loading branch information
rubennorte authored and facebook-github-bot committed Dec 12, 2024
1 parent 11c49d6 commit 6059660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ const definitions: FeatureFlagDefinitions = {
},
},
shouldSkipStateUpdatesForLoopingAnimations: {
defaultValue: false,
defaultValue: true,
metadata: {
dateAdded: '2024-07-25',
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<0c6bca5d443beff11d70a5cba470607f>>
* @generated SignedSource<<b2dbe24b891b3e41ffe50b095806caf8>>
* @flow strict
*/

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

/**
* Enables use of AnimatedObject for animating transform values.
Expand Down

0 comments on commit 6059660

Please sign in to comment.