feat: emit socket events for stopping
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user