Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

327 B
Raw Blame
import { useSyncExternalStore } from "react";

const subscribe = () => () => {
  /* empty */
};
const getSnapshot = () => true;
const getServerSnapshot = () => false;

export const useMounted = () => {
  const isMounted = useSyncExternalStore(
    subscribe,
    getSnapshot,
    getServerSnapshot
  );

  return isMounted;
};