MCPcopy Index your code
hub / github.com/react/react / logger

Function logger

packages/react-dom/src/__tests__/ReactComponentLifeCycle-test.js:448–454  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

446 it('should call nested legacy lifecycle methods in the right order', async () => {
447 let log;
448 const logger = function (msg) {
449 return function () {
450 // return true for shouldComponentUpdate
451 log.push(msg);
452 return true;
453 };
454 };
455 class Outer extends React.Component {
456 UNSAFE_componentWillMount = logger('outer componentWillMount');
457 componentDidMount = logger('outer componentDidMount');

Callers 11

InnerClass · 0.85
setFunction · 0.85
makeReadOnlyFunction · 0.85
logPromiseFunction · 0.85
publishToNPMFunction · 0.85
checkNPMPermissionsFunction · 0.85
buildAndTestExtensionsFunction · 0.85
downloadLatestReactBuildFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected