@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 606 B
Source Map (JSON)
{"version":3,"file":"ssr.cjs","names":["useSyncExternalStore","noop"],"sources":["../../../src/utils/ssr.ts"],"sourcesContent":["\"use client\"\n\nimport { noop } from \"@yamada-ui/utils\"\nimport { useSyncExternalStore } from \"react\"\n\nexport function useSsr() {\n if (typeof useSyncExternalStore === \"function\")\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useSyncExternalStore(\n () => noop,\n () => false,\n () => true,\n )\n\n return false\n}\n"],"mappings":";;;;;;;;;;AAKA,SAAgB,SAAS;AACvB,KAAI,OAAOA,+BAAyB,WAElC,8CACQC,8BACA,aACA,KACP;AAEH,QAAO"}