Revert "fix(app): startup efficiency (#18854)"

This reverts commit 546748a461.
This commit is contained in:
Adam 2026-03-24 18:36:37 -05:00
commit a379eb3867
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
33 changed files with 632 additions and 939 deletions

View file

@ -104,13 +104,6 @@ function withFallback<T>(read: () => T | undefined, fallback: T) {
return createMemo(() => read() ?? fallback)
}
let font: Promise<typeof import("@opencode-ai/ui/font-loader")> | undefined
function loadFont() {
font ??= import("@opencode-ai/ui/font-loader")
return font
}
export const { use: useSettings, provider: SettingsProvider } = createSimpleContext({
name: "Settings",
init: () => {
@ -118,7 +111,6 @@ export const { use: useSettings, provider: SettingsProvider } = createSimpleCont
createEffect(() => {
if (typeof document === "undefined") return
void loadFont().then((x) => x.ensureMonoFont(store.appearance?.font))
document.documentElement.style.setProperty("--font-family-mono", monoFontFamily(store.appearance?.font))
})