UNPKG

repoweaver

Version:

A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies

1 lines 1.14 kB
{"ast":null,"code":"\"use strict\";\n\nimport * as React from 'react';\nexport function useLazyValue(create) {\n const lazyRef = React.useRef(undefined);\n if (lazyRef.current === undefined) {\n lazyRef.current = create();\n }\n return lazyRef.current;\n}","map":{"version":3,"names":["React","useLazyValue","create","lazyRef","useRef","undefined","current"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/core/src/useLazyValue.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport function useLazyValue<T>(create: () => T) {\n const lazyRef = React.useRef<T>(undefined);\n\n if (lazyRef.current === undefined) {\n lazyRef.current = create();\n }\n\n return lazyRef.current as T;\n}\n"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAO,SAASC,YAAYA,CAAIC,MAAe,EAAE;EAC/C,MAAMC,OAAO,GAAGH,KAAK,CAACI,MAAM,CAAIC,SAAS,CAAC;EAE1C,IAAIF,OAAO,CAACG,OAAO,KAAKD,SAAS,EAAE;IACjCF,OAAO,CAACG,OAAO,GAAGJ,MAAM,CAAC,CAAC;EAC5B;EAEA,OAAOC,OAAO,CAACG,OAAO;AACxB","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}