Releases: darkroomengineering/hamo
v0.6.9
v0.4.27
v0.4.24
tree shaking
0.2.2 bump version
0.2.0
0.0.1
added the following hooks:
useDebounce
– debounce goodness
useDebug
– returns true if #debug is present in the url
useEffectOnce
– runs a function through react's useEffect with an empty dependency array
useFrame
– use @react-spring/rafz
animation frame
useInterval
– create and dispose intervals
useIsTouchDevice
– duh
useIsomophicLayoutEffect
– runs react's useLayoutEffect
if in browser, if not, runs a plain useEffect
instead
useMeasure
– measure anything in the dom
useMediaQuery
– css-like media query support in Javascript.
useRafState
– modify state in sync with @react-spring/rafz
useRect
– getboundingclientrect with scrollY sauce if using our lenis smooth scroll
useSlots
– brings vue slots
to react
useTimeoutFn
– timeout a function
useUnmount
– calls unmount
callbacks.
useWindowSize
– window sizing updated in sync with @react-spring/rafz