feat: useEffect for pagination selection start
This commit is contained in:
@@ -248,6 +248,18 @@ export const BrowserWindow = () => {
|
||||
setShowAttributeModal(false);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const handleStartPaginationSelection = () => {
|
||||
setIsSelectingPagination(true);
|
||||
};
|
||||
|
||||
socket?.on('startPaginationSelection', handleStartPaginationSelection);
|
||||
|
||||
return () => {
|
||||
socket?.off('startPaginationSelection', handleStartPaginationSelection);
|
||||
};
|
||||
}, [socket]);
|
||||
|
||||
return (
|
||||
<div onClick={handleClick}>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user