veza/apps/web/src/features/playlists/hooks
senke af6a42b8d0 state-ownership: add optimistic updates to remaining mutations
- Added optimistic updates to notification mutations:
  - markAsReadMutation: Optimistically marks notification as read
  - markAllAsReadMutation: Optimistically marks all notifications as read
  - Updated in both NotificationsPage and NotificationMenu
- Added optimistic updates to share link mutations:
  - createShareMutation: Optimistically adds share link to local state
  - revokeShareMutation: Optimistically removes share link from local state
- Added optimistic updates to chat mutations:
  - leaveRoomMutation: Optimistically removes conversation from list
  - deleteRoomMutation: Optimistically removes conversation from list
- Added optimistic update to reorder mutation:
  - useReorderPlaylistTracks: Optimistically reorders tracks in playlist
- All mutations include:
  - onMutate: Cancel queries, snapshot previous state, apply optimistic update
  - onError: Rollback to previous state
  - onSuccess: Invalidate queries for consistency
- Action 4.4.1.5 complete (18 mutations with optimistic updates)
2026-01-15 19:48:47 +01:00
..
usePlaylist.test.tsx refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
usePlaylist.ts state-ownership: add optimistic updates to remaining mutations 2026-01-15 19:48:47 +01:00
usePlaylistKeyboardShortcuts.test.ts refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
usePlaylistNotifications.test.tsx refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
usePlaylistNotifications.ts incus deployement fully implemented, Makefile updated and make fmt ran 2026-01-13 19:47:57 +01:00
usePlaylistPermissions.test.tsx [INT-AUTH-002] Remove duplicate auth store - migrate to features/auth/store/authStore.ts 2025-12-26 09:11:46 +01:00
usePlaylistPermissions.ts [FE-TYPE-001] fe-type: Fix all ID type mismatches 2025-12-25 14:27:28 +01:00
usePlaylistTrack.test.tsx refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
useTouchGestures.ts refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00