complete design of adding new test and bundling and saving map data next step...
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import axios from "axios";
|
||||
import { GET_PROVINCE_LISTS } from "@/core/utils/routes";
|
||||
import {useEffect, useState} from "react";
|
||||
import {GET_PROVINCE_LISTS} from "@/core/utils/routes";
|
||||
import useRequest from "@/lib/hooks/useRequest";
|
||||
|
||||
const useProvinces = () => {
|
||||
@@ -25,7 +24,7 @@ const useProvinces = () => {
|
||||
fetchCities(); // Call the fetch function
|
||||
}, []); // Empty dependency array to ensure it only runs once
|
||||
|
||||
return { provinces, loadingProvinces, errorProvinces };
|
||||
return {provinces, loadingProvinces, errorProvinces};
|
||||
};
|
||||
|
||||
export default useProvinces;
|
||||
|
||||
Reference in New Issue
Block a user