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

Function getHostParentFiber

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

Source from the content-addressed store, hash-verified

23908 }
23909
23910 function getHostParentFiber(fiber) {
23911 var parent = fiber.return;
23912
23913 while (parent !== null) {
23914 if (isHostParent(parent)) {
23915 return parent;
23916 }
23917
23918 parent = parent.return;
23919 }
23920
23921 {
23922 {
23923 throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
23924 }
23925 }
23926 }
23927
23928 function isHostParent(fiber) {
23929 return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;

Callers 1

commitPlacementFunction · 0.85

Calls 1

isHostParentFunction · 0.85

Tested by

no test coverage detected