Skip to content

Commit

Permalink
Merge pull request #69 from ThatNinjaGuy/develop
Browse files Browse the repository at this point in the history
Fetching menu items takes a long time on order input screen #55
  • Loading branch information
ThatNinjaGuy authored Sep 15, 2024
2 parents ad85d24 + 78e6b1b commit 757acbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions screens/TablesScreen/TablesScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const TablesScreen = () => {
useEffect(() => {
setIsLoading(true);
fetchAllTables(setTables, setIsLoading);
// Fetch menu items on the tables screen so no refetch is needed for each table
fetchMenuItems(setMenuItems);
}, []);

Expand Down

0 comments on commit 757acbb

Please sign in to comment.