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