@modern-kit/react
Version:
13 lines (9 loc) • 363 B
JavaScript
;
var React = require('react');
var utils = require('@modern-kit/utils');
const subscribe = () => utils.noop;
const getSnapshot = () => true;
const getServerSnapshot = () => false;
const useIsClient = () => React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
exports.useIsClient = useIsClient;
//# sourceMappingURL=index.cjs.map