diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-05-06 17:51:51 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-05-06 17:51:51 -0700 |
commit | 0a8dc289ff7ee387b1ade935d5ecf0223d2febe4 (patch) | |
tree | 3145cf98ff496a3cc4aa7d07b090ca12ba35c239 /src/App.web.tsx | |
parent | 901feba6db9467ce9b75a78128fa305fc3370c7e (diff) | |
parent | 1d8fdbcc34afecf95df1d0d1c45f9094e8e630ac (diff) | |
download | voidsky-0a8dc289ff7ee387b1ade935d5ecf0223d2febe4.tar.zst |
Merge branch 'web-loading' of https://github.com/TuxPenguin09/bsky-social-app into TuxPenguin09-web-loading
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r-- | src/App.web.tsx | 10 |
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) { |