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

Function useEventCallback

app/src/static/js/react-bootstrap.js:489–494  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

487}
488
489function useEventCallback(fn) {
490 var ref = (0, _useCommittedRef.default)(fn);
491 return (0, _react.useCallback)(function () {
492 return ref.current.apply(void 0, arguments);
493 }, [ref]);
494}
495
496/***/ }),
497/* 9 */

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…