diff options
author | Eric Bailey <git@esb.lol> | 2024-09-19 17:57:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 17:57:15 -0500 |
commit | 22410a3cee459761a9eb2d1a52de99557a424797 (patch) | |
tree | 2ce6a0341707abc710dc76459e0e946a1153be2c /src/App.native.tsx | |
parent | c8184e823dc79d1ff1f71571bae5cb7611f61d5d (diff) | |
download | voidsky-22410a3cee459761a9eb2d1a52de99557a424797.tar.zst |
[Neue] Parallel font loading on web (#5411)
* Parallel font loading (cherry picked from commit 10e2b05b575bbbf8b0ca5b4a336817cd902d712b) * Handle failures * Rely on font-face and preload tags for font loading (#5431) * Cache fonts for a year
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index b780880b3..2ec666e2c 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -55,7 +55,7 @@ import {TestCtrls} from '#/view/com/testing/TestCtrls' import {Provider as VideoVolumeProvider} from '#/view/com/util/post-embeds/VideoVolumeContext' import * as Toast from '#/view/com/util/Toast' import {Shell} from '#/view/shell' -import {ThemeProvider as Alf, useFonts} from '#/alf' +import {ThemeProvider as Alf} from '#/alf' import {useColorModeTheme} from '#/alf/util/useColorModeTheme' import {NuxDialogs} from '#/components/dialogs/nuxs' import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry' @@ -156,13 +156,12 @@ function InnerApp() { function App() { const [isReady, setReady] = useState(false) - const [loaded] = useFonts() React.useEffect(() => { initPersistedState().then(() => setReady(true)) }, []) - if (!isReady || !loaded) { + if (!isReady) { return null } |