feat: reset getList state after emitting settings
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user