Skip to content

Releases: darkroomengineering/hamo

v0.6.9

30 Jan 20:14
Compare
Choose a tag to compare
fix exported hooks

v0.4.27

24 Aug 21:07
Compare
Choose a tag to compare
fix github workflow

v0.4.24

24 Aug 15:29
181fab7
Compare
Choose a tag to compare

General updates and standardization.
semantic-release has been added from now on.

tree shaking

09 May 23:22
Compare
Choose a tag to compare
0.2.2

bump version

0.2.0

09 May 21:49
Compare
Choose a tag to compare
  • updated rollup config
  • removed hooks already present in react-use
  • tree shakeable
  • lighter 🪶

0.0.1

15 Feb 22:15
2e411f5
Compare
Choose a tag to compare

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