1.0.6 • Published 2 years ago

goca v1.0.6

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Installation

npm i goca

funcion

useAxios

 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

useInterval(funcion,Time-delay)

useLocalstorage

// 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

useDebounce(funcion,deley)
1.0.2

2 years ago

1.0.1

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago