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