0.5.0 (2024-11-25)
-
no longer supports
cancelPrevious
this is always true -
fix:(useDebouncedCallback): Clean up timeout logic in strict mode
-
chore: deprecate useWillUnmount
This hook is not possible in StrictMode, and can cause bugs
-
fix(useForceUpdate): ensure that chained calls produce an update
-
Update useCustomEffect.ts
-
address feedback
0.4.16 (2024-02-10)
0.4.15 (2023-12-07)
- useDebouncedState: Add factory function overload to type, clarify setter purity (9aa18fb)
0.4.14 (2023-12-07)
- useDebouncedCallback: wrap handler in useEventCallback so it's not stale (63f897a)
0.4.13 (2023-12-06)
- useDebouncedCallback: return value from debounced function (d1ead47)
0.4.12 (2023-12-06)
0.4.11 (2023-07-17)
- useIsInitialRenderRef: clarify usage and fix ordering (437c417)
0.4.10 (2023-07-13)
0.4.9 (2023-02-10)
0.4.8 (2023-01-25)
0.4.7 (2022-04-27)
0.4.6 (2022-04-01)
0.4.5 (2021-12-10)
- add useUpdateLayoutEffect (1914f7e)
0.4.4 (2021-12-07)
- use targetWindow (6c8fc0d)
0.4.3 (2021-12-07)
- store matchers per window (6509df8)
0.4.2 (2021-12-07)
0.4.1 (2021-09-27)
- useFocusManager: memo returned handlers (410bd5a)
- add useDebouncedValue (362dedf)
0.4.0 (2021-06-17)
- useIntersectionObserver: allow lazy roots (4c8b77a)
- useIntersectionObserver: allow lazy roots (#53) (6b035cf)
- useIntersectionObserver:
null
in the native API means "the window", this is a departure to allow a consumer to hold off setting up the observer until the have a ref to the root. This was possible before by explicitly setting element tonull
until the root is available but still created an extra observer
0.3.27 (2021-06-16)
- useIntersectionObserver: add more performant overload (6c532d8)
- useMutationObserver: add overload to return records and trigger updates (1eaa621)
- useToggleState: add useToggleState hook (#48) (5f95dd0)
- add useDebouncedCallback hook (05fb8da)
- add useDebouncedState hook (a87dd3b)
- remove lodash (#35) (fefa63c)
0.3.26 (2021-01-05)
0.3.25 (2020-05-14)
0.3.24 (2020-05-13)
0.3.23 (2020-05-13)
0.3.22 (2020-03-18)
- useImmediateUpdateEffect: allow teardown from last effect like builtin effect hooks (b85ad85)
- add useCustomEffect (76b18d0)
- add useMutationObserver (c9df89c)
0.3.21 (2020-02-25)
- add useMountEffect (f4c4753)
- add useRefWithInitialValueFactory (31188e2)
- add useUpdateEffect (a0d17b1)
0.3.20 (2020-01-23)
0.3.19 (2019-11-26)
0.3.18 (2019-11-22)
- Fix React peer dependency (ea56c3d)
0.3.17 (2019-11-22)
0.3.16 (2019-11-22)
0.3.15 (2019-10-23)
0.3.14 (2019-09-20)
0.3.13 (2019-09-06)
- useStableMemo infinite loop (ad6fc5a)
0.3.12 (2019-08-12)
0.3.11 (2019-08-09)
0.3.10 (2019-08-09)
0.3.9 (2019-08-05)
- add useForceUpdate() (ba91b5f)
0.3.8 (2019-07-18)
0.3.7 (2019-07-11)
- useIntersectionObserver: fix internal set state call triggering warnings (7bc1d0c)
0.3.6 (2019-07-08)
0.3.5 (2019-07-06)
- useIntersectionObserver: return an array consistently (ad3bb35)
- add useMediaQuery and useBreakpoint (0d165ec)
0.3.4 (2019-07-04)
- useIntersectionObserver: make SSR compatible (fc56257)
0.3.3 (2019-07-03)
- useEventListener: correct listener options type (96503dc)
- useAnimationFrame: add the ability to not clear previous callbacks (541b82c)
- useIntersectionObserver: add an IntersectionObserver hook (5791b22)
- useIsomorphicEffect: add hook to avoid SSR warning with useLayoutEffect (6e6b5fa)
- useResizeObserver: use with isomorphic safe effect (4a5d976)
- useStableMemo: add useStableMemo for a stable...useMemo (ff981fb)
0.3.2 (2019-06-26)
- add esm support (#5) (ec456c1)
- useEventListener allows a function, useGlobalListener works in SSR (c67b9bc)
0.3.1 (2019-06-07)
0.3.0 (2019-05-28)
- better name (dca4d54)
- useRequestAnimationFrame -> useAnimationFrame
0.2.14 (2019-05-28)
- add useRequestAnimationFrame (5c8dff1)
0.2.13 (2019-05-15)
- types: useInterval overloads (f592102)
0.2.12 (2019-05-08)
- types: make useFocusManger options optional (c1ee506)
- useMounted: provides a stable isMounted function (3703508)
0.2.11 (2019-05-02)
- allow nullable handlers in event callback (c423cb8)
0.2.10 (2019-05-02)
- add useFocusManager() (1cbeb66)
- add useTimeout() (4cb8fa1)
- add useUpdatedRef (79b3a49)
- add useWillUnmount() (ab3e4df)
0.2.9 (2019-04-22)
0.2.8 (2019-04-22)
- add useCallbackRef (722f6f5)
0.2.7 (2019-04-16)
- types: allow null or undefined for useImage (6806fd4)
- useResizeObserver: allow element to be null or undefined (d441fa2)
0.2.6 (2019-04-15)
0.2.5 (2019-04-10)
- support Images directly in useImage (f16210b)
0.2.3 (2019-03-28)
- allow return null from useMergeState updater function (c14a4e5)
0.2.2 (2019-03-28)
- optional crossOrigin on useImage (2e08a7d)
0.2.1 (2019-03-28)
- add useImage (5b5de01)
0.2.0 (2019-03-28)
- add use*Interval overloads (94dea26)
- add useEventListener (bc3f520)
- useEffect over LayoutEffect (95c3416)
- changed arg order around on useInterval and useRafInterval
- useCommittedRef fires latter now on useEffect
0.1.6 (2019-03-27)
- better globalListener types (b0ae1ed)
0.1.5 (2019-03-26)
- remove usePrevious console.log (aeb56d8)
0.1.4 (2019-03-26)
- deploy new code (be0689c)
0.1.3 (2019-03-26)
- add useMounted (36ed090)