Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/4b34aa98cade6e8a8c629106bdd...

1 line
638 B
JSON

{"ast":null,"code":"import { useEffect, useRef } from 'react';\n/**\n * Creates a `Ref` whose value is updated in an effect, ensuring the most recent\n * value is the one rendered with. Generally only required for Concurrent mode usage\n * where previous work in `render()` may be discarded befor being used.\n *\n * This is safe to access in an event handler.\n *\n * @param value The `Ref` value\n */\n\nfunction useCommittedRef(value) {\n var ref = useRef(value);\n useEffect(function () {\n ref.current = value;\n }, [value]);\n return ref;\n}\n\nexport default useCommittedRef;","map":null,"metadata":{},"sourceType":"module"}