Skip to content

Commit e805631

Browse files
zeyapmeta-codesync[bot]
authored andcommitted
Remove unused animatedShouldDebounceQueueFlush feature flag (#57340)
Summary: Pull Request resolved: #57340 `animatedShouldDebounceQueueFlush` is no longer read anywhere — `NativeAnimatedHelper` now debounces the queue flush unconditionally. Remove the now-dead flag definition and its generated getter. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D109472811 fbshipit-source-id: 2afe41cda10aa53440ac5084cec5989654dfecb0
1 parent 217ee52 commit e805631

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -970,17 +970,6 @@ const definitions: FeatureFlagDefinitions = {
970970
},
971971
ossReleaseStage: 'none',
972972
},
973-
animatedShouldDebounceQueueFlush: {
974-
defaultValue: true,
975-
metadata: {
976-
dateAdded: '2024-02-05',
977-
description:
978-
'Enables an experimental flush-queue debouncing in Animated.js.',
979-
expectedReleaseValue: true,
980-
purpose: 'experimentation',
981-
},
982-
ossReleaseStage: 'none',
983-
},
984973
animatedShouldSyncValueBeforeStartCallback: {
985974
defaultValue: true,
986975
metadata: {

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

Lines changed: 1 addition & 7 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<<f44477b5f5a4f7030798a61694d0332a>>
7+
* @generated SignedSource<<1a333a44919efce6bb2070bae79bdf9b>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -31,7 +31,6 @@ export type ReactNativeFeatureFlagsJsOnly = Readonly<{
3131
jsOnlyTestFlag: Getter<boolean>,
3232
animatedDeferStartOfTimingAnimations: Getter<boolean>,
3333
animatedForceNativeDriver: Getter<boolean>,
34-
animatedShouldDebounceQueueFlush: Getter<boolean>,
3534
animatedShouldSyncValueBeforeStartCallback: Getter<boolean>,
3635
animatedShouldUseSingleOp: Getter<boolean>,
3736
deferFlatListFocusChangeRenderUpdate: Getter<boolean>,
@@ -151,11 +150,6 @@ export const animatedDeferStartOfTimingAnimations: Getter<boolean> = createJavaS
151150
*/
152151
export const animatedForceNativeDriver: Getter<boolean> = createJavaScriptFlagGetter('animatedForceNativeDriver', false);
153152

154-
/**
155-
* Enables an experimental flush-queue debouncing in Animated.js.
156-
*/
157-
export const animatedShouldDebounceQueueFlush: Getter<boolean> = createJavaScriptFlagGetter('animatedShouldDebounceQueueFlush', true);
158-
159153
/**
160154
* When a useNativeDriver animation completes, syncs the JS-side AnimatedValue with the post-animation value BEFORE invoking the user-supplied start({finished}) callback. Without the flag, the callback observes the pre-animation value, which can cause downstream re-renders to read stale interpolation outputs.
161155
*/

0 commit comments

Comments
 (0)