ソースを参照

add settimeout on lader

master
azri 4週間前
コミット
503952aac4
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      src/components/Loader/Loader.jsx

+ 3
- 1
src/components/Loader/Loader.jsx ファイルの表示

@@ -12,7 +12,9 @@ const Loader = () => {
12 12
   useEffect(() => {
13 13
     
14 14
     if (products.length > 0) {
15
-      setDisplay(false)
15
+      setTimeout(() => {
16
+        setDisplay(false)
17
+      }, 1000);
16 18
     }
17 19
 
18 20
   }, [products])

読み込み中…
キャンセル
保存