MCPcopy Create free account
hub / github.com/Lobos/react-ui / wrapper

Function wrapper

docs/lib/react.js:12396–12404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12394 if ("development" !== 'production') {
12395 var measuredFunc = null;
12396 var wrapper = function () {
12397 if (ReactPerf.enableMeasure) {
12398 if (!measuredFunc) {
12399 measuredFunc = ReactPerf.storedMeasure(objName, fnName, func);
12400 }
12401 return measuredFunc.apply(this, arguments);
12402 }
12403 return func.apply(this, arguments);
12404 };
12405 wrapper.displayName = objName + '_' + fnName;
12406 return wrapper;
12407 }

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…