Skip to content

Commit 2abe623

Browse files
yungstersfacebook-github-bot
authored andcommitted
Animated: Omit allowlist in avoidStateUpdateInAnimatedPropsMemo Experiment (facebook#50232)
Summary: Pull Request resolved: facebook#50232 While reviewing the `avoidStateUpdateInAnimatedPropsMemo` experiment, I noticed that the control and test groups were invoking `areCompositeKeysEqual` differently: - Test group was passing in `allowlist`. - Control group was not passing in `allowlist`. Passing it in is technically more correct, but let's restore the control group behavior for now to isolate the tested changes. Changelog: [Internal] Reviewed By: javache Differential Revision: D71746745 fbshipit-source-id: aa34db0532ef53ead08bbd632aab0994b31b9340
1 parent 4789744 commit 2abe623

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-native/src/private/animated/createAnimatedPropsMemoHook.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ export function createAnimatedPropsMemoHook(
9191
const prev = prevRef.current;
9292

9393
const next =
94-
prev != null &&
95-
areCompositeKeysEqual(prev.compositeKey, compositeKey, allowlist)
94+
prev != null && areCompositeKeysEqual(prev.compositeKey, compositeKey)
9695
? prev
9796
: {
9897
compositeKey,

0 commit comments

Comments
 (0)