fix: duplicate network calls on index page (#2085)

* Prevent extra recipe load on index page

* Prevent loading recipes with food for all components but search ones

* add missing change in search page
This commit is contained in:
Sören
2023-02-05 19:52:49 +01:00
committed by GitHub
parent f3a26f864d
commit f4b819899d
5 changed files with 12 additions and 4 deletions

View File

@@ -134,7 +134,7 @@ export default defineComponent({
RecipeCardSection,
},
setup() {
const { assignSorted } = useRecipes(true);
const { assignSorted } = useRecipes(true, true, true);
// ================================================================
// Advanced Toggle