fix: update dependency in useEffect to include sendMessage for WebSocket handling

This commit is contained in:
SergeantPanda 2026-03-29 16:22:44 -05:00
parent 121199de9c
commit 2e0c136796

View file

@ -167,7 +167,7 @@ const RegexFormAndView = ({ profile = null, m3u, isOpen, onClose }) => {
} catch (error) {
console.error('Error sending WebSocket message:', error);
}
}, [websocketReady, m3u, debouncedPatterns, streamUrl, sampleInput]);
}, [websocketReady, sendMessage, m3u, debouncedPatterns, streamUrl, sampleInput]);
useEffect(() => {
const handler = setTimeout(() => {