Skip to content

Commit fcdc7a8

Browse files
committed
Refactor products
1 parent 5d6218f commit fcdc7a8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pages/products.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
<template>
2-
<div v-if="data.products">
3-
<ProductsShowAll :products="data.products.nodes" />
4-
</div>
2+
<ProductsShowAll />
53
</template>
64

75
<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-
136
useHead({
147
title: "Products",
158
titleTemplate: "%s - Nuxt 3 Woocommerce",

0 commit comments

Comments
 (0)