multica/apps/web/app/hooks
Naiyuan Qing 716bbceaf4 refactor(chat, hooks): simplify handleSend and update useDeviceId to use useSyncExternalStore
- Simplified handleSend function in Chat component by removing unnecessary useCallback.
- Refactored useDeviceId hook to utilize useSyncExternalStore for better state management and removed useState and useEffect for device ID retrieval.
- Updated useGateway hook to ensure onMessageRef is set correctly on options change.
- Enhanced useScrollFade hook to properly cancel animation frames on cleanup.
2026-01-30 23:38:10 +08:00
..
use-device-id.ts refactor(chat, hooks): simplify handleSend and update useDeviceId to use useSyncExternalStore 2026-01-30 23:38:10 +08:00
use-gateway.ts refactor(chat, hooks): simplify handleSend and update useDeviceId to use useSyncExternalStore 2026-01-30 23:38:10 +08:00
use-hub-init.ts refactor(web): unify hub + agent state into single Zustand store 2026-01-30 23:15:11 +08:00
use-hub-store.ts refactor(web): unify hub + agent state into single Zustand store 2026-01-30 23:15:11 +08:00
use-messages.ts feat(web): add gateway, hub, active-agent hooks and real message state 2026-01-30 22:40:50 +08:00
use-scroll-fade.ts refactor(chat, hooks): simplify handleSend and update useDeviceId to use useSyncExternalStore 2026-01-30 23:38:10 +08:00