unstale

npm / react-use

react-use

What changed in react-use 14 to 17, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

7 breaking2 new APIs and options2 behavior and defaults4 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.4 on npm

react-use 171 changes

Breaking changes 1

  • The useNetwork hook was renamed to useNetworkState, so developers must update their hook references.

    17.0.0release notes

react-use 162 changes

Breaking changes 2

  • The comps directory was renamed to component.

    16.0.0release notes

  • The create* factories moved to the factory subdirectory; direct imports should use this path.

    16.0.0release notes

react-use 1510 changes

Breaking changes 2

  • The useMeasure hook no longer uses resize-observer-polyfill.

    15.0.0release notes

  • Keeps the previous result or error when called multiple times.

    15.0.0release notes

New APIs and options 2

  • Adds a remove feature for removing the stored value.

    15.0.0release notes

  • Adds a sensor hook for tracking scratch interactions.

    15.0.0release notes

Behavior and default changes 2

  • Adds dependency inference for the effect.

    15.0.0release notes

  • Works on the server and mocks the hook on the server or when ResizeObserver is unavailable.

    15.0.0release notes

Fixes and other changes 4

  • Improves the typings for useAsyncFn and useAsync.

    15.0.0release notes

  • Improves serialization handling and uses undefined instead of null for an empty value.

    15.0.0release notes

  • Defaults values to zeros when they have not been set.

    15.0.0release notes

  • Removes set dependencies and makes the has method use the latest set object.

    15.0.0release notes

react-use 142 changes

Breaking changes 2

  • The hook now returns only functions in the order stop, start, isActive.

    14.0.0release notes

  • Starting or stopping the loop no longer re-renders the parent component.

    14.0.0release notes