0.1.0-beta.12 • Published 2 years ago
@m9ch/vhooks v0.1.0-beta.12
@m9ch/vhooks
Missing React-like hooks in Vue Composition API.
All hooks
| Hook | Description |
|---|---|
| useState | Return a Readonly<Ref>, and function to update it |
| useEffect | Accepts a function that contains imperative, possibly effectful code |
| useContext | Accepts a context object returned by createContext and returns the current context value |
| useReducer | An alternative to useState. Accepts a reducer function |
| useRef | An alternative to ref |
| usePrevious | A Hook to return the previous state |
| useUpdate | Returns a function which can be used to force the component re-render |
| useLatest | Returns a Ref which always return a latest value |
| useLockFn | Add a lock to an async function to prevent parallel executions |
| useAsyncEffect | Similar with useEffect but support async function |
| useCountDown | Simple countdown timer, returns states and control functions |
| useEventEmitter | Simple publisher/subscriber pattern implement |
| useResetableRef | Returns Ref and a reset function to reset to initial value |
| useUpdateEffect | A hook alike useEffect but skips running the effect for the first time |
| useDeepCompareEffect | Usage is the same as useEffect, but deps are compared with lodash.isEqual |
| useDebounceFn | A hook that deals with the debounced function |
| useDebounceEffect | Debounced useEffect |
| useThrottleFn | A hook that deals with the throttled function |
| useThrottleEffect | Throttled useEffect |
| useRafInterval | A hook implements with requestAnimationFrame for better performance |
| useRafTimeout | A hook implements with requestAnimationFrame for better performance |
| useRafState | Update the state in requestAnimationFrame callback |
| useRequest | A powerful hook for asynchronous data management |
0.1.0-beta.12
2 years ago
0.1.0-beta.11
2 years ago
0.1.0-beta.5
3 years ago
0.1.0-beta.10
3 years ago
0.1.0-beta.7
3 years ago
0.1.0-beta.6
3 years ago
0.1.0-beta.8
3 years ago
0.1.0-beta.4
3 years ago
0.1.0-beta.3
3 years ago
0.1.0-beta.2
3 years ago
0.1.0-beta.1
3 years ago
0.1.0-alpha.16
3 years ago
0.1.0-alpha.18
3 years ago
0.1.0-alpha.17
3 years ago
0.1.0-alpha.10
4 years ago
0.1.0-alpha.12
4 years ago
0.1.0-alpha.11
4 years ago
0.1.0-alpha.14
4 years ago
0.1.0-alpha.13
4 years ago
0.1.0-alpha.9
4 years ago
0.1.0-alpha.8
4 years ago
0.1.0-alpha.7
4 years ago
0.1.0-alpha.6
4 years ago
0.1.0-alpha.5
4 years ago
0.1.0-alpha.4
4 years ago
0.1.0-alpha.3
4 years ago
0.1.0-alpha.2
4 years ago
0.1.0-alpha.1
4 years ago
0.1.0-alpha.0
4 years ago