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

Function multiRender

app/src/static/js/react-bootstrap.js:6767–6790  ·  view source on GitHub ↗
(props, ref)

Source from the content-addressed store, hash-verified

6765 }
6766
6767 function multiRender(props, ref) {
6768 var _extends3;
6769
6770 var propsWithRef = _extends((_extends3 = {}, _extends3[forwardRefAs] = ref, _extends3), props);
6771
6772 return consumers.reduceRight(function (inner, Context) {
6773 return function () {
6774 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
6775 args[_key] = arguments[_key];
6776 }
6777
6778 var Consumer = ensureConsumer(Context);
6779 return _react.default.createElement(Consumer, null, function (value) {
6780 return inner.apply(void 0, args.concat([value]));
6781 });
6782 };
6783 }, function () {
6784 for (var _len2 = arguments.length, contexts = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
6785 contexts[_key2] = arguments[_key2];
6786 }
6787
6788 return _react.default.createElement(Component, _extends({}, propsWithRef, mapToProps.apply(void 0, contexts.concat([props]))));
6789 })();
6790 }
6791
6792 var contextTransform = consumers.length === 1 ? singleRender : multiRender;
6793 return (0, _forwardRef.default)(contextTransform, {

Callers

nothing calls this directly

Calls 2

_extendsFunction · 0.85
ensureConsumerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…