This commit is contained in:
Vikhyath Mondreti
2025-06-27 17:35:09 -07:00
parent 82d491d1b6
commit f8cfdba5ee

View File

@@ -85,8 +85,6 @@ export function SocketProvider({ children, user }: SocketProviderProps) {
const [currentWorkflowId, setCurrentWorkflowId] = useState<string | null>(null)
const [presenceUsers, setPresenceUsers] = useState<PresenceUser[]>([])
// Use refs to store event handlers to avoid stale closures
const eventHandlers = useRef<{
workflowOperation?: (data: any) => void