(fiber, element)
| 22534 | : family.current; |
| 22535 | } |
| 22536 | function isCompatibleFamilyForHotReloading(fiber, element) { |
| 22537 | if (null === resolveFamily) return !1; |
| 22538 | var prevType = fiber.elementType; |
| 22539 | element = element.type; |
| 22540 | var needsCompareFamilies = !1, |
| 22541 | $$typeofNextType = |
| 22542 | "object" === typeof element && null !== element |
| 22543 | ? element.$$typeof |
| 22544 | : null; |
| 22545 | switch (fiber.tag) { |
| 22546 | case 1: |
| 22547 | "function" === typeof element && (needsCompareFamilies = !0); |
| 22548 | break; |
| 22549 | case 0: |
| 22550 | "function" === typeof element |
| 22551 | ? (needsCompareFamilies = !0) |
| 22552 | : $$typeofNextType === REACT_LAZY_TYPE && |
| 22553 | (needsCompareFamilies = !0); |
| 22554 | break; |
| 22555 | case 11: |
| 22556 | $$typeofNextType === REACT_FORWARD_REF_TYPE |
| 22557 | ? (needsCompareFamilies = !0) |
| 22558 | : $$typeofNextType === REACT_LAZY_TYPE && |
| 22559 | (needsCompareFamilies = !0); |
| 22560 | break; |
| 22561 | case 14: |
| 22562 | case 15: |
| 22563 | $$typeofNextType === REACT_MEMO_TYPE |
| 22564 | ? (needsCompareFamilies = !0) |
| 22565 | : $$typeofNextType === REACT_LAZY_TYPE && |
| 22566 | (needsCompareFamilies = !0); |
| 22567 | break; |
| 22568 | default: |
| 22569 | return !1; |
| 22570 | } |
| 22571 | return needsCompareFamilies && |
| 22572 | ((fiber = resolveFamily(prevType)), |
| 22573 | void 0 !== fiber && fiber === resolveFamily(element)) |
| 22574 | ? !0 |
| 22575 | : !1; |
| 22576 | } |
| 22577 | function markFailedErrorBoundaryForHotReloading(fiber) { |
| 22578 | null !== resolveFamily && |
| 22579 | "function" === typeof WeakSet && |
no outgoing calls
no test coverage detected
searching dependent graphs…