Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

410 B
Raw Blame
import { useSyncExternalStore } from 'react';

const noopSubscribe = () => () => {};
const getSnapshot = () => true;
const getServerSnapshot = () => false;

// False during SSR and the hydration render, true after mount — for
// viewer-timezone-dependent output that must not be part of hydrated HTML.
export const useIsHydrated = () =>
  useSyncExternalStore(noopSubscribe, getSnapshot, getServerSnapshot);