This commit is contained in:
2026-03-18 20:54:43 +01:00
parent b3c8b77f12
commit 9fe656b34c
8058 changed files with 912898 additions and 23 deletions
+1
View File
@@ -0,0 +1 @@
export { useIsHydrated } from './use-is-hydrated';
@@ -0,0 +1,16 @@
import { useSyncExternalStore } from 'use-sync-external-store/shim';
/**
* Determines whether or not the component tree has been hydrated.
*/
export function useIsHydrated() {
return useSyncExternalStore(
subscribe,
() => true,
() => false
);
}
function subscribe() {
return () => {};
}