feat: emit setGetList:false socket event in pagination mode

This commit is contained in:
amhsirak
2024-12-10 23:05:17 +05:30
parent 59cee8e693
commit fd16aff31c

View File

@@ -53,6 +53,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
const startPaginationMode = () => {
setPaginationMode(true);
setCaptureStage('pagination');
socket?.emit('setGetList', { getList: false });
};
const stopPaginationMode = () => setPaginationMode(false);
@@ -75,7 +76,6 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
const stopGetList = () => {
setGetList(false);
socket?.emit('setGetList', { getList: false });
setPaginationType('');
setLimitType('');
setCustomLimit('');