From b63701c67324086d479dd26e72457cd8fc1a79e0 Mon Sep 17 00:00:00 2001 From: Rohit Date: Fri, 25 Apr 2025 19:33:12 +0530 Subject: [PATCH 1/3] feat: emit list false on discard --- src/context/browserActions.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index bc377bbb..d344f6af 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -88,6 +88,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const stopGetList = () => { setGetList(false); + socket?.emit('setGetList', { getList: false }); setPaginationType(''); setLimitType(''); setCustomLimit(''); From 3160ee8474b5f6012294102a4020f74b566f7ac3 Mon Sep 17 00:00:00 2001 From: Rohit Date: Fri, 25 Apr 2025 22:35:42 +0530 Subject: [PATCH 2/3] feat: stop pagination and limit mode on discard --- src/components/recorder/RightSidePanel.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/recorder/RightSidePanel.tsx b/src/components/recorder/RightSidePanel.tsx index 6027e26d..9bbbc8b2 100644 --- a/src/components/recorder/RightSidePanel.tsx +++ b/src/components/recorder/RightSidePanel.tsx @@ -423,6 +423,8 @@ export const RightSidePanel: React.FC = ({ onFinishCapture } }); resetListState(); + stopPaginationMode(); + stopLimitMode(); setShowPaginationOptions(false); setShowLimitOptions(false); setCaptureStage('initial'); From fa34500c3ab6ef06d1097fa127bcf5822fd77f3b Mon Sep 17 00:00:00 2001 From: Rohit Date: Fri, 25 Apr 2025 22:36:12 +0530 Subject: [PATCH 3/3] feat: set pagination socket event false --- src/context/browserActions.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index d344f6af..42f9f95e 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -68,7 +68,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);