- 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. |
||
|---|---|---|
| .. | ||
| components | ||
| hooks | ||
| lib | ||
| icon.png | ||
| layout.tsx | ||
| page.tsx | ||