@nextui-org/react-utils
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -6,3 +6,4 @@ export { CreateContextOptions, CreateContextReturn, createContext } from './context.js'; | ||
export { DOMEventNames, DOMPropNames, filterDOMProps, getValidChildren, pickChildren, renderFn } from '@nextui-org/react-rsc-utils'; | ||
export { useIsHydrated } from './use-is-hydrated.js'; | ||
import 'react'; | ||
import '@react-types/shared'; |
@@ -54,2 +54,3 @@ "use client"; | ||
useFocusableRef: () => useFocusableRef, | ||
useIsHydrated: () => useIsHydrated, | ||
useSyncRef: () => useSyncRef | ||
@@ -243,2 +244,14 @@ }); | ||
var import_react_rsc_utils = require("@nextui-org/react-rsc-utils"); | ||
// src/use-is-hydrated.ts | ||
var React2 = __toESM(require("react")); | ||
function useIsHydrated() { | ||
const subscribe = () => () => { | ||
}; | ||
return React2.useSyncExternalStore( | ||
subscribe, | ||
() => true, | ||
() => false | ||
); | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -270,3 +283,4 @@ 0 && (module.exports = { | ||
useFocusableRef, | ||
useIsHydrated, | ||
useSyncRef | ||
}); |
{ | ||
"name": "@nextui-org/react-utils", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "A set of utilities for react on client side", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
36367
26
1117