feat: emit socket events for stopping

This commit is contained in:
Rohit
2025-04-29 00:38:53 +05:30
parent 8d06146f6d
commit 4ed3160ac0

View File

@@ -107,6 +107,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
setLimitType('');
setCustomLimit('');
setCaptureStage('complete');
socket?.emit('setGetList', { getList: false });
} else if (action === 'screenshot') {
setGetScreenshot(false);
}
@@ -123,7 +124,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
socket?.emit('setPaginationMode', { pagination: true });
};
const stopPaginationMode = () => setPaginationMode(false);
const stopPaginationMode = () => {
setPaginationMode(false),
socket?.emit('setPaginationMode', { pagination: false });
};
const startLimitMode = () => {
setLimitMode(true);