From d247442c8fbd1781c4483d9c04405d7b6bd1fe09 Mon Sep 17 00:00:00 2001 From: Pradeeppon01 Date: Wed, 24 Jul 2024 03:30:46 +0530 Subject: [PATCH] latest --- src/Components/PlaygroundUpdated.jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Components/PlaygroundUpdated.jsx b/src/Components/PlaygroundUpdated.jsx index 228f976..f1ae111 100644 --- a/src/Components/PlaygroundUpdated.jsx +++ b/src/Components/PlaygroundUpdated.jsx @@ -270,11 +270,12 @@ const PlayGroundUpdated = () => { console.log("current card index use effect ... ", currentCardIndex); if (totalData) { if (totalData.length > 0 && currentCardIndex < totalData.length) { - setIsLoading(true); - setTimeout(() => { - setCardData(totalData[currentCardIndex]); - setIsLoading(false); - }, 1000); + setCardData(totalData[currentCardIndex]); + // setIsLoading(true); + // setTimeout(() => { + // setCardData(totalData[currentCardIndex]); + // setIsLoading(false); + // }, 1000); } } }, [currentCardIndex]);