Skip to content

Commit

Permalink
✨ feat : 포즈픽 최소로딩 900ms
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Mar 26, 2024
1 parent 93fcbf9 commit 2a56f3a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/app/(Main)/pick/components/PickSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,22 @@ export default function PickSection() {
setTimeout(() => setIsLottie(false), 2200);
}, []);

// useEffect(() => {
// if (!isLottie) {
// setTimeout(() => {
// if (!isRendered) {
// // refetch();
// console.log('no!');
// }
// }, 2000);
// }
// }, [isLottie]);

const handlePickClick = () => {
setIsRendered(false);
refetch();
// setIsLottie(true);
// setTimeout(() => setIsLottie(false), 600);
setIsLottie(true);
setTimeout(() => setIsLottie(false), 900);
};

return (
Expand Down

0 comments on commit 2a56f3a

Please sign in to comment.