mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 01:46:14 +08:00
Extract the 535-line useChat hook into 7 focused modules for better maintainability and testability. Add chat-preview-slice to Zustand store to centralize chat state management instead of local useState/useRef.