Skip to content

Commit 2d93995

Browse files
zeyapfacebook-github-bot
authored andcommitted
Enable animatedShouldDebounceQueueFlush by default
Summary: Flip the default value of the `animatedShouldDebounceQueueFlush` JavaScript feature flag to `true`, enabling Animated flush-queue debouncing everywhere, and remove the per-app overrides that already forced it on. This flag just put operations in a microtasks queue, it doesn't rely on any specific native animated implementation Changelog: [General][Changed] - Enable Animated flush-queue debouncing (`animatedShouldDebounceQueueFlush`) by default Reviewed By: christophpurrer Differential Revision: D109468771
1 parent 7ed17c9 commit 2d93995

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
@@ -971,7 +971,7 @@ const definitions: FeatureFlagDefinitions = {
971971
ossReleaseStage: 'none',
972972
},
973973
animatedShouldDebounceQueueFlush: {
974-
defaultValue: false,
974+
defaultValue: true,
975975
metadata: {
976976
dateAdded: '2024-02-05',
977977
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<<68e9dbd18bfcb5e7d5cad27d8663ce66>>
7+
* @generated SignedSource<<c9804d0743d9a9d905193cb02816da46>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -154,7 +154,7 @@ export const animatedForceNativeDriver: Getter<boolean> = createJavaScriptFlagGe
154154
/**
155155
* Enables an experimental flush-queue debouncing in Animated.js.
156156
*/
157-
export const animatedShouldDebounceQueueFlush: Getter<boolean> = createJavaScriptFlagGetter('animatedShouldDebounceQueueFlush', false);
157+
export const animatedShouldDebounceQueueFlush: Getter<boolean> = createJavaScriptFlagGetter('animatedShouldDebounceQueueFlush', true);
158158

159159
/**
160160
* 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.

0 commit comments

Comments
 (0)