11 lines
283 B
TypeScript
11 lines
283 B
TypeScript
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,
|
|
})
|
|
}
|