MCPcopy Create free account
hub / github.com/reactjs/react-rails / assertIsMounted

Function assertIsMounted

lib/assets/react-source/development/react.js:6640–6646  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6638 }
6639
6640 function assertIsMounted(fiber) {
6641 if (!(getNearestMountedFiber(fiber) === fiber)) {
6642 {
6643 throw Error( "Unable to find node on an unmounted component." );
6644 }
6645 }
6646 }
6647
6648 function findCurrentFiberUsingSlowPath(fiber) {
6649 var alternate = fiber.alternate;

Callers 1

Calls 1

getNearestMountedFiberFunction · 0.85

Tested by

no test coverage detected