This can cause long file names (URLs) to be truncated which in turn will break named hooks code (since it needs to load those file names).
if (_debugOwner) {
      let owner = _debugOwner;
      while (owner !== null) {
        owners.unshift(fiberToSerializedElement(owner));
        owner = owner._debugOwner || null;
      }
    }
    return owners;
  }
   Fast path props lookup for React Native style editor.
   Could use inspectElementRaw() but that would require shallow rendering hooks components,
   and could also mess with memoization.
  function getInstanceAndStyle(id: number): InstanceAndStyle {
    let instance = null;
    let style = null;
    const fiber = findCurrentFiberUsingSlowPathById(id);
    if (fiber !== null) {
      instance = fiber.stateNode;
      if (fiber.memoizedProps !== null) {
        style = fiber.memoizedProps.style;
      }
    }
    return {instance, style};
  }
  function isErrorBoundary(fiber: Fiber): boolean {
    const {tag, type} = fiber;
    switch (tag) {
      case ClassComponent:
      case IncompleteClassComponent:
        const instance = fiber.stateNode;