npm i goca
const {data,error,loading} = useAxios({ method: 'get', url: '/endpoint', enabled: true })
you want controler where de you ejecute:
const {data,loading,error,fetcher} = useAxios({ method: 'get', url:'/endpoint', enabled: false })
useEffect(()=>{
fetcher({
enabled: false,
method: "get",
url: "https://rickandmortyapi.com/api/character"
})
},[])
useInterval(funcion,Time-delay)
// do you want save value set Item
useLocalstorage(key,errorHandler,value to local storage)
//do you want get item
const [value, _]= useLocalstorage(key,errorHandler)
//update value
const [value, updateValue]= useLocalstorage(key,errorHandler)
updateValue(value to local storage) //the same key
useDebounce(funcion,deley)