{
  "version": 3,
  "sources": ["../../src/utils/useConstant.ts"],
  "sourcesContent": ["import { useRef } from \"react\"\n\n// Only init the constant once\nexport function useConstant<T>(init: () => T): T {\n\tconst ref = useRef<T | null>(null)\n\n\tif (ref.current === null) {\n\t\tref.current = init()\n\t}\n\n\treturn ref.current\n}\n"],
  "mappings": ";;;;;;;;AAAA,mBAAuB;AAGhB,SAAS,YAAe,MAAkB;AAChD,QAAM,UAAM,qBAAiB,IAAI;AAEjC,MAAI,IAAI,YAAY,MAAM;AACzB,QAAI,UAAU,KAAK;AAAA,EACpB;AAEA,SAAO,IAAI;AACZ;",
  "names": []
}
