feat: appdata

This commit is contained in:
2023-11-13 16:51:29 +00:00
parent 540f29dd69
commit 24978f4e62
29 changed files with 181 additions and 136 deletions

View File

@ -95,7 +95,7 @@ class LangStore extends ExternalStore<string | null> {
const LangOverride = new LangStore();
export function useLocale() {
const { language } = useLogin(s => ({ language: s.preferences.language }));
const { language } = useLogin(s => ({ language: s.appData.item.preferences.language }));
const loggedOutLang = useSyncExternalStore(
c => LangOverride.hook(c),
() => LangOverride.snapshot(),