product-card

This commit is contained in:
Veselov
2025-09-05 17:33:46 +03:00
parent 3259495ffb
commit 02abf2781e
15 changed files with 144 additions and 15 deletions

View File

@@ -1,2 +1,3 @@
export * from './useGetProductsDetail'
export * from './useGetProductsList'
export * from './useGetProductsVariationsList'

View File

@@ -0,0 +1,10 @@
import { useQuery } from '@tanstack/vue-query'
import { getProductsList } from '~/api/endpoints/getProductsList'
export const useGetProductsList = () => {
return useQuery({
queryKey: ['get-products-list'],
queryFn: () => getProductsList(),
staleTime: Infinity,
})
}