mirror of
https://github.com/documenso/documenso.git
synced 2026-07-12 14:05:20 +10:00
18 lines
310 B
TypeScript
18 lines
310 B
TypeScript
import { useSyncExternalStore } from 'react';
|
|
|
|
const subscribe = () => {
|
|
return () => {};
|
|
};
|
|
|
|
const getSnapshot = () => {
|
|
return true;
|
|
};
|
|
|
|
const getServerSnapshot = () => {
|
|
return false;
|
|
};
|
|
|
|
export const useIsMounted = () => {
|
|
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
};
|