Merge pull request #244 from getmaxun/socket-list-initial

feat: emit `setGetList` false socket event in pagination mode
This commit is contained in:
Karishma Shukla
2024-12-10 23:06:54 +05:30
committed by GitHub

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('');