mirror of
https://github.com/usememos/memos.git
synced 2025-12-22 00:29:24 +08:00
Fixes filtering functionality that was broken due to improper use of useMemo with MobX observables. The issue occurred because useMemo's dependency array uses reference equality, but MobX observable arrays are mutated in place (reference doesn't change when items are added/removed). Changes: - Remove useMemo from filter computation in Home, UserProfile, and Archived pages - Calculate filters directly in render since components are already MobX observers - Fix typo: memoFitler -> memoFilter in Archived.tsx This ensures filters are recalculated whenever memoFilterStore.filters changes, making tag clicks and other filter interactions work correctly. Fixes #5189 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| activity.go | ||
| attachment.go | ||
| common.go | ||
| idp.go | ||
| inbox.go | ||
| memo.go | ||
| memo_filter_test.go | ||
| memo_relation.go | ||
| migration_history.go | ||
| postgres.go | ||
| reaction.go | ||
| user.go | ||
| user_setting.go | ||
| workspace_setting.go | ||