feat: emit setGetList:false socket event in pagination mode
This commit is contained in:
@@ -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('');
|
||||||
|
|||||||
Reference in New Issue
Block a user