Files
simply_cpq/website/node_modules/@mui/x-internals/useIsHydrated/useIsHydrated.mjs
T
2026-08-07 21:39:30 +02:00

11 lines
337 B
JavaScript

'use client';
import * as React from 'react';
const emptySubscribe = () => () => {};
const getSnapshot = () => true;
const getServerSnapshot = () => false;
/** Returns true after hydration is done on the client. */
export function useIsHydrated() {
return React.useSyncExternalStore(emptySubscribe, getSnapshot, getServerSnapshot);
}