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