UNPKG

@etsoo/toolpad

Version:

Dashboard framework extention based on Toolpad Core

17 lines (16 loc) 363 B
import * as React from "react"; function subscribe() { return () => { }; } function getSnapshot() { return false; } function getServerSnapshot() { return true; } /** * Returns true when serverside rendering, or when hydrating. */ export default function useSsr() { return React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); }