mirror of
https://github.com/usememos/memos.git
synced 2025-12-18 14:50:13 +08:00
Fixed issue #5194 where changing the layout (List/Masonry) or sort direction didn't update the UI until page refresh. The root cause was that ViewState fields weren't marked as MobX observables, so the UI didn't react to changes even though values were being persisted to localStorage. Solution: Added constructor to ViewState that marks orderByTimeAsc and layout fields as observable, following the same pattern used in other stores like MemoFilterState. Fixes #5194 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierrc.js | ||
| components.json | ||
| eslint.config.mjs | ||
| index.html | ||
| MARKDOWN_STYLE_GUIDE.md | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.mts | ||