mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-17 05:05:44 +02:00
fase 5
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
export { useIsHydrated } from './use-is-hydrated';
|
||||
+16
@@ -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 () => {};
|
||||
}
|
||||
Reference in New Issue
Block a user