0.1.0-beta.12 • Published 3 months 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
3 months ago
0.1.0-beta.11
3 months ago
0.1.0-beta.5
1 year ago
0.1.0-beta.10
1 year ago
0.1.0-beta.7
1 year ago
0.1.0-beta.6
1 year ago
0.1.0-beta.8
1 year ago
0.1.0-beta.4
2 years ago
0.1.0-beta.3
2 years ago
0.1.0-beta.2
2 years ago
0.1.0-beta.1
2 years ago
0.1.0-alpha.16
2 years ago
0.1.0-alpha.18
2 years ago
0.1.0-alpha.17
2 years ago
0.1.0-alpha.10
2 years ago
0.1.0-alpha.12
2 years ago
0.1.0-alpha.11
2 years ago
0.1.0-alpha.14
2 years ago
0.1.0-alpha.13
2 years ago
0.1.0-alpha.9
2 years ago
0.1.0-alpha.8
2 years ago
0.1.0-alpha.7
2 years ago
0.1.0-alpha.6
2 years ago
0.1.0-alpha.5
2 years ago
0.1.0-alpha.4
2 years ago
0.1.0-alpha.3
2 years ago
0.1.0-alpha.2
2 years ago
0.1.0-alpha.1
2 years ago
0.1.0-alpha.0
2 years ago