0.1.0-beta.12 • Published 3 months ago

@m9ch/vhooks v0.1.0-beta.12

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@m9ch/vhooks

Missing React-like hooks in Vue Composition API.

All hooks

HookDescription
useStateReturn a Readonly<Ref>, and function to update it
useEffectAccepts a function that contains imperative, possibly effectful code
useContextAccepts a context object returned by createContext and returns the current context value
useReducerAn alternative to useState. Accepts a reducer function
useRefAn alternative to ref
usePreviousA Hook to return the previous state
useUpdateReturns a function which can be used to force the component re-render
useLatestReturns a Ref which always return a latest value
useLockFnAdd a lock to an async function to prevent parallel executions
useAsyncEffectSimilar with useEffect but support async function
useCountDownSimple countdown timer, returns states and control functions
useEventEmitterSimple publisher/subscriber pattern implement
useResetableRefReturns Ref and a reset function to reset to initial value
useUpdateEffectA hook alike useEffect but skips running the effect for the first time
useDeepCompareEffectUsage is the same as useEffect, but deps are compared with lodash.isEqual
useDebounceFnA hook that deals with the debounced function
useDebounceEffectDebounced useEffect
useThrottleFnA hook that deals with the throttled function
useThrottleEffectThrottled useEffect
useRafIntervalA hook implements with requestAnimationFrame for better performance
useRafTimeoutA hook implements with requestAnimationFrame for better performance
useRafStateUpdate the state in requestAnimationFrame callback
useRequestA 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