Merge branch 'web-loading' of https://github.com/TuxPenguin09/bsky-social-app into TuxPenguin09-web-loading

This commit is contained in:
Paul Frazee 2024-05-06 17:51:51 -07:00
commit 0a8dc289ff
3 changed files with 34 additions and 2 deletions

View file

@ -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) {