mirror of
https://github.com/documenso/documenso.git
synced 2025-11-23 05:01:54 +10:00
14 lines
218 B
TypeScript
14 lines
218 B
TypeScript
import { useSyncExternalStore } from 'react';
|
|
|
|
const subscribe = () => {
|
|
return () => {};
|
|
};
|
|
|
|
export const useHydrated = () => {
|
|
return useSyncExternalStore(
|
|
subscribe,
|
|
() => true,
|
|
() => false,
|
|
);
|
|
};
|