mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Cleanup enableAnimatedClearImmediateFix (#49787)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49787 We're not experimenting with this, so cleanup the code. Changelog: [Internal] Reviewed By: fabriziocucci Differential Revision: D70488980 fbshipit-source-id: 12e93b7f8fb89e3bb1f06c8f734b782286f3fad3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
035142e62d
commit
d3b203f2cb
@@ -562,17 +562,6 @@ const definitions: FeatureFlagDefinitions = {
|
||||
},
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
enableAnimatedClearImmediateFix: {
|
||||
defaultValue: true,
|
||||
metadata: {
|
||||
dateAdded: '2024-09-17',
|
||||
description:
|
||||
'Enables an experimental to use the proper clearIntermediate instead of calling the wrong clearTimeout and canceling another timer.',
|
||||
expectedReleaseValue: true,
|
||||
purpose: 'experimentation',
|
||||
},
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
enableDOMDocumentAPI: {
|
||||
defaultValue: false,
|
||||
metadata: {
|
||||
|
||||
@@ -144,11 +144,7 @@ const API = {
|
||||
ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
|
||||
flushQueueImmediate
|
||||
) {
|
||||
if (ReactNativeFeatureFlags.enableAnimatedClearImmediateFix()) {
|
||||
clearImmediate(flushQueueImmediate);
|
||||
} else {
|
||||
clearTimeout(flushQueueImmediate);
|
||||
}
|
||||
clearImmediate(flushQueueImmediate);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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<<3e68d888bf4d8ac71b63571a639d265b>>
|
||||
* @generated SignedSource<<857c807934fc671129d3c85605de7171>>
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
@@ -33,7 +33,6 @@ export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
|
||||
avoidStateUpdateInAnimatedPropsMemo: Getter<boolean>,
|
||||
disableInteractionManager: Getter<boolean>,
|
||||
enableAccessToHostTreeInFabric: Getter<boolean>,
|
||||
enableAnimatedClearImmediateFix: Getter<boolean>,
|
||||
enableDOMDocumentAPI: Getter<boolean>,
|
||||
fixVirtualizeListCollapseWindowSize: Getter<boolean>,
|
||||
isLayoutAnimationEnabled: Getter<boolean>,
|
||||
@@ -124,11 +123,6 @@ export const disableInteractionManager: Getter<boolean> = createJavaScriptFlagGe
|
||||
*/
|
||||
export const enableAccessToHostTreeInFabric: Getter<boolean> = createJavaScriptFlagGetter('enableAccessToHostTreeInFabric', false);
|
||||
|
||||
/**
|
||||
* Enables an experimental to use the proper clearIntermediate instead of calling the wrong clearTimeout and canceling another timer.
|
||||
*/
|
||||
export const enableAnimatedClearImmediateFix: Getter<boolean> = createJavaScriptFlagGetter('enableAnimatedClearImmediateFix', true);
|
||||
|
||||
/**
|
||||
* Enables the DOM Document API, exposing instaces of document through `getRootNode` and `ownerDocument`, and providing access to the `documentElement` representing the root node. This flag will be short-lived, only to test the Document API specifically, and then it will be collapsed into the enableAccessToHostTreeInFabric flag.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user