Skip to content

Commit

Permalink
[LOCAL]Disable useInsertionEffectsForAnimations
Browse files Browse the repository at this point in the history
  • Loading branch information
cipolleschi committed Jan 14, 2025
1 parent bbbeef6 commit d0e01e1
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 @@ -546,7 +546,7 @@ const definitions: FeatureFlagDefinitions = {
},
},
useInsertionEffectsForAnimations: {
defaultValue: true,
defaultValue: false,
metadata: {
description:
'Changes construction of the animation graph to `useInsertionEffect` instead of `useLayoutEffect`.',
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<<83b5798ee1c7a28fffbf110e19641d69>>
* @generated SignedSource<<aa51de14d1f085127ad410580beb15f6>>
* @flow strict
*/

Expand Down Expand Up @@ -170,7 +170,7 @@ export const shouldUseSetNativePropsInFabric: Getter<boolean> = createJavaScript
/**
* Changes construction of the animation graph to `useInsertionEffect` instead of `useLayoutEffect`.
*/
export const useInsertionEffectsForAnimations: Getter<boolean> = createJavaScriptFlagGetter('useInsertionEffectsForAnimations', true);
export const useInsertionEffectsForAnimations: Getter<boolean> = createJavaScriptFlagGetter('useInsertionEffectsForAnimations', false);

/**
* Enable a variant of TextInput that moves some state to refs to avoid unnecessary re-renders
Expand Down

0 comments on commit d0e01e1

Please sign in to comment.