feat: reset getList state after emitting settings

This commit is contained in:
karishmas6
2024-09-04 05:32:39 +05:30
parent 036673e5ed
commit c594633b74
2 changed files with 32 additions and 9 deletions

View File

@@ -121,6 +121,16 @@ export const RightSidePanel = () => {
return settings;
}, [browserSteps, selectedPaginationSetting]);
const resetListState = useCallback(() => {
setShowPaginationOptions(false);
setSelectedPaginationSetting(null);
}, []);
const handleStopGetList = useCallback(() => {
stopGetList();
resetListState();
}, [stopGetList, resetListState]);
const stopCaptureAndEmitGetListSettings = useCallback(() => {
stopGetList();