mirror of
https://github.com/documenso/documenso.git
synced 2025-11-23 13:11:32 +10:00
chore: dependency updates (#2229)
This commit is contained in:
13
packages/ui/lib/use-hydrated.ts
Normal file
13
packages/ui/lib/use-hydrated.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { useSyncExternalStore } from 'react';
|
||||
|
||||
const subscribe = () => {
|
||||
return () => {};
|
||||
};
|
||||
|
||||
export const useHydrated = () => {
|
||||
return useSyncExternalStore(
|
||||
subscribe,
|
||||
() => true,
|
||||
() => false,
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user