From b7150aec91929001a512a759a70823743fe11200 Mon Sep 17 00:00:00 2001 From: Nikita Date: Mon, 25 May 2026 20:21:19 +0200 Subject: [PATCH] feat: use effect instead of layout effect --- src/FlipList.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FlipList.tsx b/src/FlipList.tsx index 93a558f..a875203 100644 --- a/src/FlipList.tsx +++ b/src/FlipList.tsx @@ -2,7 +2,6 @@ import { cloneElement, createRef, useEffect, - useLayoutEffect, useMemo, useRef, useState, @@ -204,7 +203,7 @@ export function useFlipList( }, [animateExit, exitStyle, getKey, items, newItems, staggerDelay, timing]) // Post-update animations (moves and enters) - useLayoutEffect(() => { + useEffect(() => { // Animate all existing items. const promises = new Set>() try {