about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-05-06 17:51:51 -0700
committerPaul Frazee <pfrazee@gmail.com>2024-05-06 17:51:51 -0700
commit0a8dc289ff7ee387b1ade935d5ecf0223d2febe4 (patch)
tree3145cf98ff496a3cc4aa7d07b090ca12ba35c239 /src
parent901feba6db9467ce9b75a78128fa305fc3370c7e (diff)
parent1d8fdbcc34afecf95df1d0d1c45f9094e8e630ac (diff)
downloadvoidsky-0a8dc289ff7ee387b1ade935d5ecf0223d2febe4.tar.zst
Merge branch 'web-loading' of https://github.com/TuxPenguin09/bsky-social-app into TuxPenguin09-web-loading
Diffstat (limited to 'src')
-rw-r--r--src/App.web.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 0fed089cb..39790a448 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -110,9 +110,15 @@ function InnerApp() {
 
 function App() {
   const [isReady, setReady] = useState(false)
-
+  
   React.useEffect(() => {
-    initPersistedState().then(() => setReady(true))
+    initPersistedState().then(() => {
+      setReady(true)
+      
+      const preloadElement = document.getElementById('preload');
+      preloadElement.remove();
+    })
+    
   }, [])
 
   if (!isReady) {