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.0 KiB
1 line
1.0 KiB
{"ast":null,"code":"import { useRef } from 'react';\n/**\n * Returns a ref that is immediately updated with the new value\n *\n * @param value The Ref value\n * @category refs\n */\n\nexport default function useUpdatedRef(value) {\n var valueRef = useRef(value);\n valueRef.current = value;\n return valueRef;\n}","map":{"version":3,"names":["useRef","useUpdatedRef","value","valueRef","current"],"sources":["C:/Cours/SAE/SAE-3.01/Scripted/Scripted/website/node_modules/@restart/hooks/esm/useUpdatedRef.js"],"sourcesContent":["import { useRef } from 'react';\n/**\n * Returns a ref that is immediately updated with the new value\n *\n * @param value The Ref value\n * @category refs\n */\n\nexport default function useUpdatedRef(value) {\n var valueRef = useRef(value);\n valueRef.current = value;\n return valueRef;\n}"],"mappings":"AAAA,SAASA,MAAM,QAAQ,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAASC,aAAa,CAACC,KAAK,EAAE;EAC3C,IAAIC,QAAQ,GAAGH,MAAM,CAACE,KAAK,CAAC;EAC5BC,QAAQ,CAACC,OAAO,GAAGF,KAAK;EACxB,OAAOC,QAAQ;AACjB"},"metadata":{},"sourceType":"module"} |