You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.7 KiB

{"ast":null,"code":"import * as React from 'react';\nvar UNINITIALIZED = typeof Symbol === 'function' && typeof Symbol() === 'symbol' ? Symbol() : Object.freeze({});\nexport default function useStable(getInitialValue) {\n var ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = getInitialValue();\n }\n return ref.current;\n}","map":{"version":3,"names":["React","UNINITIALIZED","Symbol","Object","freeze","useStable","getInitialValue","ref","useRef","current"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/node_modules/react-native-web/dist/modules/useStable/index.js"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport * as React from 'react';\nvar UNINITIALIZED = typeof Symbol === 'function' && typeof Symbol() === 'symbol' ? Symbol() : Object.freeze({});\nexport default function useStable(getInitialValue) {\n var ref = React.useRef(UNINITIALIZED);\n\n if (ref.current === UNINITIALIZED) {\n ref.current = getInitialValue();\n } // $FlowFixMe (#64650789) Trouble refining types where `Symbol` is concerned.\n\n\n return ref.current;\n}"],"mappings":"AAQA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,IAAIC,aAAa,GAAG,OAAOC,MAAM,KAAK,UAAU,IAAI,OAAOA,MAAM,EAAE,KAAK,QAAQ,GAAGA,MAAM,EAAE,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC/G,eAAe,SAASC,SAAS,CAACC,eAAe,EAAE;EACjD,IAAIC,GAAG,GAAGP,KAAK,CAACQ,MAAM,CAACP,aAAa,CAAC;EAErC,IAAIM,GAAG,CAACE,OAAO,KAAKR,aAAa,EAAE;IACjCM,GAAG,CAACE,OAAO,GAAGH,eAAe,EAAE;EACjC;EAGA,OAAOC,GAAG,CAACE,OAAO;AACpB"},"metadata":{},"sourceType":"module"}