from v1 to v3
Some checks failed
Deploy / build-and-deploy (push) Failing after 37s

This commit is contained in:
Veselov
2025-07-28 18:47:33 +03:00
parent cd32863494
commit bce683c0eb
8 changed files with 8875 additions and 4163 deletions

View File

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

View File

@@ -0,0 +1,10 @@
import { useQuery } from '@tanstack/vue-query'
import { unref } from 'vue'
import { getProductsVariationsList } from '~/api/endpoints'
export const useGetProductsVariationsList = (productId: MaybeRef<number>) => {
return useQuery({
queryKey: ['get-products-variations-list', productId],
queryFn: () => getProductsVariationsList(unref(productId)),
})
}