MCPcopy Create free account
hub / github.com/docker/getting-started / useCommittedRef

Function useCommittedRef

app/src/static/js/react-bootstrap.js:8377–8383  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8375var _react = __webpack_require__(1);
8376
8377function useCommittedRef(value) {
8378 var ref = (0, _react.useRef)(value);
8379 (0, _react.useEffect)(function () {
8380 ref.current = value;
8381 }, [value]);
8382 return ref;
8383}
8384
8385var _default = useCommittedRef;
8386exports.default = _default;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…