MCPcopy Create free account
hub / github.com/caseywebdev/react-list / reenableLogs

Function reenableLogs

docs/index.js:774–792  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

772 disabledDepth++;
773 }
774 function reenableLogs() {
775 disabledDepth--;
776 if (0 === disabledDepth) {
777 var props = { configurable: !0, enumerable: !0, writable: !0 };
778 Object.defineProperties(console, {
779 log: assign({}, props, { value: prevLog }),
780 info: assign({}, props, { value: prevInfo }),
781 warn: assign({}, props, { value: prevWarn }),
782 error: assign({}, props, { value: prevError }),
783 group: assign({}, props, { value: prevGroup }),
784 groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
785 groupEnd: assign({}, props, { value: prevGroupEnd })
786 });
787 }
788 0 > disabledDepth &&
789 console.error(
790 "disabledDepth fell below zero. This is a bug in React. Please file an issue."
791 );
792 }
793 function describeBuiltInComponentFrame(name) {
794 if (void 0 === prefix)
795 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…