From 0d5d6b02330b2fc14a19e830dc4d750676c168ab Mon Sep 17 00:00:00 2001
From: Piotr Gawron <p.gawron@atcomp.pl>
Date: Thu, 26 Sep 2024 08:53:50 +0200
Subject: [PATCH] prefetch spinner

---
 src/redux/root/init.thunks.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/redux/root/init.thunks.ts b/src/redux/root/init.thunks.ts
index 20a722af..5163bf26 100644
--- a/src/redux/root/init.thunks.ts
+++ b/src/redux/root/init.thunks.ts
@@ -1,3 +1,4 @@
+import spinnerIcon from '@/assets/vectors/icons/spinner.svg';
 import { PROJECT_ID } from '@/constants';
 import { openOverlaysDrawer, openSearchDrawerWithSelectedTab } from '@/redux/drawer/drawer.slice';
 import { AppDispatch } from '@/redux/store';
@@ -126,4 +127,5 @@ export const fetchInitialAppData = createAsyncThunk<
     await dispatch(getProjects());
     dispatch(openSelectProjectModal());
   }
+  new Image().src = spinnerIcon.src;
 });
-- 
GitLab