Closed wqcstrong closed 5 months ago
发现问题的代码:
useEffect(() => { window.$pageSpy = new window.PageSpy({ api: "localhost:6752", }); return () => { window.$pageSpy.abort(); }; }, []);
$pageSpy.abort() 会调用 socketStore.close(),导致所有的事件被清除,再次连接时,follow socketStore 的事件无法恢复。
$pageSpy.abort()
socketStore.close()
No response
/
Describe the bug
发现问题的代码:
$pageSpy.abort()
会调用socketStore.close()
,导致所有的事件被清除,再次连接时,follow socketStore 的事件无法恢复。Steps to reproduce
No response
System Info
Logs
No response
Validations