Skip to content

Commit

Permalink
Merge pull request #244 from getmaxun/socket-list-initial
Browse files Browse the repository at this point in the history
feat: emit `setGetList` false socket event in pagination mode
  • Loading branch information
amhsirak authored Dec 10, 2024
2 parents 59cee8e + fd16aff commit ebb6e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/browserActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
const startPaginationMode = () => {
setPaginationMode(true);
setCaptureStage('pagination');
socket?.emit('setGetList', { getList: false });
};

const stopPaginationMode = () => setPaginationMode(false);
Expand All @@ -75,7 +76,6 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {

const stopGetList = () => {
setGetList(false);
socket?.emit('setGetList', { getList: false });
setPaginationType('');
setLimitType('');
setCustomLimit('');
Expand Down

0 comments on commit ebb6e3a

Please sign in to comment.