MCPcopy Create free account
hub / github.com/microsoft/SandDance / assertIsMounted

Function assertIsMounted

docs/external/js/react-dom.development.js:3068–3074  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

3066 }
3067
3068 function assertIsMounted(fiber) {
3069 if (!(getNearestMountedFiber(fiber) === fiber)) {
3070 {
3071 throw Error( "Unable to find node on an unmounted component." );
3072 }
3073 }
3074 }
3075
3076 function findCurrentFiberUsingSlowPath(fiber) {
3077 var alternate = fiber.alternate;

Callers 1

Calls 1

getNearestMountedFiberFunction · 0.85

Tested by

no test coverage detected