Skip to content

Commit

Permalink
execute singleExecution
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jan 21, 2024
1 parent 5b440b7 commit f96ae97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function MenuItem(
onPress(event);
return;
}
singleExecution(waitForNavigate(() => onPress(event)));
singleExecution(waitForNavigate(() => onPress(event)))();
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuItemGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type MenuItemGroupProps = {
children: React.ReactNode;

/** Whether or not to use the single execution hook */
shouldUseSingleExecution: boolean;
shouldUseSingleExecution?: boolean;
};

function MenuItemGroup({children, shouldUseSingleExecution = true}: MenuItemGroupProps) {
Expand Down

0 comments on commit f96ae97

Please sign in to comment.