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, }) }