Skip to content

Commit 87b2a37

Browse files
committed
chore: removed unnecessary memoization dependencies
1 parent 09abf89 commit 87b2a37

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/TextField/logic.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,17 @@ const useTextFieldAnimation = ({
188188
duration: ANIMATION_DURATION_MS,
189189
useNativeDriver: true,
190190
}).start();
191-
}, [isFocused, focusProgress]);
191+
// eslint-disable-next-line react-hooks/exhaustive-deps
192+
}, [isFocused]);
192193

193194
useEffect(() => {
194195
Animated.timing(floatingProgress, {
195196
toValue: isFloating ? 1 : 0,
196197
duration: ANIMATION_DURATION_MS,
197198
useNativeDriver: false,
198199
}).start();
199-
}, [isFloating, floatingProgress]);
200+
// eslint-disable-next-line react-hooks/exhaustive-deps
201+
}, [isFloating]);
200202

201203
return useMemo(() => {
202204
const activeTop =

0 commit comments

Comments
 (0)