memos/web/src
Steven e7605d90da fix: shortcut edit button opens create dialog instead of edit dialog
Fixed issue #5576 where clicking the edit button on a shortcut would
incorrectly open a create dialog instead of an edit dialog.

The root cause was an incorrect useEffect that was watching the shortcut
state itself instead of the initialShortcut prop. When the dialog was
opened for editing, the state wasn't properly reinitializing with the
existing shortcut data.

Changed the useEffect to:
- Watch initialShortcut as the dependency
- Reinitialize the shortcut state when initialShortcut changes
- Properly distinguishes between create (initialShortcut undefined) and
  edit (initialShortcut has data) modes
2026-02-04 20:03:53 +08:00
..
components fix: shortcut edit button opens create dialog instead of edit dialog 2026-02-04 20:03:53 +08:00
contexts perf(react-query): fix context re-renders and improve type safety 2025-12-25 08:29:34 +08:00
helpers feat: react query migration (#5379) 2025-12-24 22:59:18 +08:00
hooks feat: add enabled option to useInfiniteMemos and PagedMemoList for conditional fetching 2026-01-22 20:21:16 +08:00
layouts chore: simplify page loading logic 2026-01-27 23:37:32 +08:00
lib chore: add ActivityCalendar components 2025-12-28 19:59:36 +08:00
locales chore: update access token deletion message description for zh-Hans (#5573) 2026-02-04 19:54:51 +08:00
pages fix(auth): make PKCE optional for OAuth sign-in (#5570) 2026-02-02 23:28:21 +08:00
router chore: simplify page loading logic 2026-01-27 23:37:32 +08:00
themes chore: polish dark styles 2026-01-26 21:59:36 +08:00
types feat: update instance profile to use admin user instead of initialized flag 2026-01-28 23:27:53 +08:00
utils fix(auth): make PKCE optional for OAuth sign-in (#5570) 2026-02-02 23:28:21 +08:00
App.tsx feat: update instance profile to use admin user instead of initialized flag 2026-01-28 23:27:53 +08:00
auth-state.ts fix(auth): resolve token refresh and persistence issues 2025-12-18 20:56:54 +08:00
connect.ts chore: enable binary format for transport 2026-01-26 21:16:06 +08:00
i18n.ts refactor: remove MemoContentContext and integrate MemoViewContext 2025-12-28 12:46:12 +08:00
index.css feat: implement markdown components for enhanced rendering 2026-01-23 09:04:42 +08:00
instance-config.ts feat: react query migration (#5379) 2025-12-24 22:59:18 +08:00
main.tsx chore: simplify page loading logic 2026-01-27 23:37:32 +08:00