latest
This commit is contained in:
parent
56f3422a84
commit
d247442c8f
|
|
@ -270,11 +270,12 @@ const PlayGroundUpdated = () => {
|
||||||
console.log("current card index use effect ... ", currentCardIndex);
|
console.log("current card index use effect ... ", currentCardIndex);
|
||||||
if (totalData) {
|
if (totalData) {
|
||||||
if (totalData.length > 0 && currentCardIndex < totalData.length) {
|
if (totalData.length > 0 && currentCardIndex < totalData.length) {
|
||||||
setIsLoading(true);
|
setCardData(totalData[currentCardIndex]);
|
||||||
setTimeout(() => {
|
// setIsLoading(true);
|
||||||
setCardData(totalData[currentCardIndex]);
|
// setTimeout(() => {
|
||||||
setIsLoading(false);
|
// setCardData(totalData[currentCardIndex]);
|
||||||
}, 1000);
|
// setIsLoading(false);
|
||||||
|
// }, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [currentCardIndex]);
|
}, [currentCardIndex]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue