memos/web/src/components/MemoEditor
Steven fae5eac31b fix(web): fix infinite loop in MemoEditor and improve React/MobX integration
- Wrap all setter functions in useMemoEditorState with useCallback to ensure stable references
  This prevents infinite loops when setters are used in useEffect dependencies (fixes "Maximum update depth exceeded" error)
- Extract MobX observable values in useMemoFilters and useMemoSorting before using them in useMemo dependencies
  This prevents React from tracking MobX observables directly, improving reliability
- Add comprehensive documentation explaining the design decisions for future maintainability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 08:54:40 +08:00
..
Editor chore: tweak comments 2025-11-30 13:16:02 +08:00
Toolbar chore: tweak comments 2025-11-30 13:16:02 +08:00
components chore: tweak comments 2025-11-30 13:16:02 +08:00
hooks fix(web): fix infinite loop in MemoEditor and improve React/MobX integration 2025-12-01 08:54:40 +08:00
types chore: tweak comments 2025-11-30 13:16:02 +08:00
constants.ts chore: tweak comments 2025-11-30 13:16:02 +08:00
index.tsx chore: streamline MemoEditor components and remove unused code 2025-11-30 12:30:00 +08:00