memos/web/src/hooks
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
..
index.ts chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
useAsyncEffect.ts chore: tweak refresh button 2024-06-01 23:27:35 +08:00
useCurrentUser.ts chore: move frontend store 2025-07-07 22:44:08 +08:00
useDialog.ts chore: tweak comments 2025-11-30 13:16:02 +08:00
useFilteredMemoStats.ts chore: tweak comments 2025-11-30 13:16:02 +08:00
useLoading.ts chore: add i18n based with useContext 2022-08-07 22:48:22 +08:00
useMemoFilters.ts fix(web): fix infinite loop in MemoEditor and improve React/MobX integration 2025-12-01 08:54:40 +08:00
useMemoSorting.ts fix(web): fix infinite loop in MemoEditor and improve React/MobX integration 2025-12-01 08:54:40 +08:00
useNavigateTo.ts feat: optimize filters sync (#4260) 2025-01-04 23:42:49 +08:00
useResponsiveWidth.ts chore: add use reponsive width 2023-11-10 11:22:32 +08:00