blob: c6953db7b9356b5034b9d7fa97d9c863f91539bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import categoryHomeIdApi from '../api/categoryHomeIdApi'
import { useQuery } from 'react-query'
const useCategoryHomeId = () => {
const fetchCategoryHomeId = async () => await categoryHomeIdApi()
const { isLoading, data } = useQuery('categoryHomeId', fetchCategoryHomeId)
return {
categoryHomeIds: { data, isLoading }
}
}
export default useCategoryHomeId
|