MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / hasRealRoot

Function hasRealRoot

packages/vite/hmr/client/index.ts:336–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 }
335 };
336 const hasRealRoot = () => {
337 try {
338 const fr = getTopmost();
339 if (!fr) return false;
340 if (isPlaceholderView(fr)) return false;
341 const pg = (fr as any).currentPage || (fr as any)._currentEntry?.resolvedPage;
342 if (!pg) return false;
343 if (isPlaceholderView(pg)) return false;
344 return true;
345 } catch {
346 return false;
347 }
348 };
349 try {
350 g.__NS_HMR_RESCUE_SCHEDULED__ = true;
351 } catch {}

Callers 1

applyFullGraphFunction · 0.85

Calls 2

getTopmostFunction · 0.85
isPlaceholderViewFunction · 0.85

Tested by

no test coverage detected