@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
15 lines (11 loc) • 347 B
JavaScript
"use client";
import { useSyncExternalStore } from "react";
import { noop } from "@yamada-ui/utils";
//#region src/utils/ssr.ts
function useSsr() {
if (typeof useSyncExternalStore === "function") return useSyncExternalStore(() => noop, () => false, () => true);
return false;
}
//#endregion
export { useSsr };
//# sourceMappingURL=ssr.js.map