We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d6218f commit fcdc7a8Copy full SHA for fcdc7a8
pages/products.vue
@@ -1,15 +1,8 @@
1
<template>
2
- <div v-if="data.products">
3
- <ProductsShowAll :products="data.products.nodes" />
4
- </div>
+ <ProductsShowAll />
5
</template>
6
7
<script setup>
8
-import FETCH_ALL_PRODUCTS_QUERY from "@/apollo/queries/FETCH_ALL_PRODUCTS_QUERY.gql";
9
-
10
-const variables = { limit: 5 };
11
-const { data } = await useAsyncQuery(FETCH_ALL_PRODUCTS_QUERY, variables);
12
13
useHead({
14
title: "Products",
15
titleTemplate: "%s - Nuxt 3 Woocommerce",
0 commit comments