• Steven's avatar
    refactor(web): improve locale/theme preference initialization · 3dc740c7
    Steven authored
    - Extract preference logic into dedicated hooks (useUserLocale, useUserTheme)
    - Add applyLocaleEarly() for consistent early application
    - Remove applyUserPreferences() from user store (now redundant)
    - Simplify App.tsx by moving effects to custom hooks
    - Make locale/theme handling consistent and reactive
    - Clean up manual preference calls from sign-in flows
    
    Fixes locale not overriding localStorage on user login.
    Improves maintainability with better separation of concerns.
    3dc740c7
Name
Last commit
Last update
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
CLAUDE.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...