- 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. |
||
|---|---|---|
| .. | ||
| use-device-id.ts | ||
| use-gateway.ts | ||
| use-hub-init.ts | ||
| use-hub-store.ts | ||
| use-messages.ts | ||
| use-scroll-fade.ts | ||