-
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 |
|---|---|---|
| .. | ||
| remark-plugins | ||
| attachment.ts | ||
| i18n.ts | ||
| markdown-list-detection.ts | ||
| markdown-manipulation.ts | ||
| memo.ts | ||
| oauth.ts | ||
| theme.ts | ||
| user.ts | ||
| uuid.ts |