Skip to content

Releases: childrentime/reactuse

MCP Support

07 Jul 08:05
Compare
Choose a tag to compare

If you want to use the MCP (Meta Command Protocol) integration with reactuse, you can easily set it up with the following configuration. This allows you to run the @reactuses/mcp utility via npx for enhanced command-line support and automation.

Add the following to your configuration:

"@reactuses/mcp": {
  "command": "npx",
  "args": ["-y", "@reactuses/mcp@latest"],
  "type": "stdio"
}

6.0.2(May 06, 2025)

06 May 08:15
Compare
Choose a tag to compare

🩹Fix

  • fix(react native): Property 'document' doesn't exist.

6.0.0(Dec 20, 2024)

23 Dec 08:19
Compare
Choose a tag to compare

Breaking Changes

Modified the runtime behavior of the following hooks to ensure concurrent mode safety:

  • useActiveElement
  • useCustomCompareEffect
  • useDarkMode
  • useLatest
  • usePrevious
  • useMouse

Warning: These changes will affect your applications. Using unstable references as prop parameters in these hooks may trigger infinite React re-renders, since these props are now included in the hooks' dependency arrays.

All DOM parameter passing now requires a stable reference. When using SSR mode, you might commonly pass functions like () => window. Make sure to extract these functions to the outer scope to maintain a stable reference, for example:

If you're passing DOM parameters using refs, you don't need to worry about this issue since refs always maintain stable references.

// Don't do this:
function Component() {
  useHook(() => window)
}

// Do this instead:
const getWindow = () => window
function Component() {
  useHook(getWindow)
}

Chore

List React19 as Dependency.

5.0.21(Aug 16, 2024)

16 Aug 04:06
Compare
Choose a tag to compare

🚀 Enhancements

  • feat(useLocalStorage): deprecated effectStorageValue, rename to mountStorageValue. add listenToStorageChanges option, default to true.

5.0.19(July 25, 2024)

25 Jul 08:08
Compare
Choose a tag to compare

🚀 Enhancements

  • feat: add usePreferredLanguages
  • feat: add useBroadcastChannel
  • feat: add useDevicePixelRatio
  • feat: add useElementByPoint
  • feat: add useQRCode

🩹Fix

  • fix next.js import error: SyntaxError: Named export 'a' not found. The requested module './index-client-Qon46B4S.js' is a CommonJS module, which may not support all module.exports as named exports.. which caused by use client with bunchee;

5.0.15(June 05, 2024)

05 Jun 09:14
Compare
Choose a tag to compare

🚀 Enhancements

  • add useControlled
  • add useDiscosure
  • add useEventSource

5.0.11(April 12, 2024)

12 Apr 03:53
e3d426c
Compare
Choose a tag to compare

🩹Fix

  • Fixed the issue where useOnceEffect does not execute the cleanup function

5.0.10(March 17, 2024)

19 Mar 09:39
Compare
Choose a tag to compare

🚀 Enhancements

  • add usePlatform
  • add useMobileLandscape

5.0.8(March 12, 2024)

12 Mar 07:46
Compare
Choose a tag to compare

🩹Fix

  • fix(useWindowScroll): ssr error

5.0.7(March 01, 2024)

01 Mar 02:47
Compare
Choose a tag to compare

🚀 Enhancements

  • restore target element #72
  • feat(useClickOutSide): support enable prop

📖 Documentation

  • add changelog

Full Changelog: v5.0.6...v5.0.7