feat: remove watch for list selector

This commit is contained in:
karishmas6
2024-10-27 19:10:28 +05:30
parent a72976530b
commit aebbfbbfd9

View File

@@ -121,12 +121,12 @@ export const BrowserWindow = () => {
}, [screenShot, canvasRef, socket, screencastHandler]);
// Watch for changes in listSelector
useEffect(() => {
if (listSelector) {
notify(`info`,`List selector updated to: ${listSelector}`);
// socket?.emit('listSelector', { selector: listSelector });
}
}, [listSelector, socket]);
// useEffect(() => {
// if (listSelector) {
// notify(`info`,`List selector updated to: ${listSelector}`);
// // socket?.emit('listSelector', { selector: listSelector });
// }
// }, [listSelector, socket]);
const highlighterHandler = useCallback((data: { rect: DOMRect, selector: string, elementInfo: ElementInfo | null, childSelectors?: string[] }) => {
if (getList === true) {