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

Function getTopmost

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

Source from the content-addressed store, hash-verified

317 if (!bootDone && !initialMounted && !initialMounting && !g.__NS_HMR_RESCUE_SCHEDULED__) {
318 // simple snapshot helpers
319 const getTopmost = () => {
320 try {
321 const F = getCore('Frame') || g.Frame;
322 return F?.topmost?.() || null;
323 } catch {
324 return null;
325 }
326 };
327 const isPlaceholderView = (v: any) => {
328 try {
329 if (!v) return false;

Callers 1

hasRealRootFunction · 0.85

Calls 2

getCoreFunction · 0.70
topmostMethod · 0.45

Tested by

no test coverage detected