MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / clearAppInstallStatusLater

Function clearAppInstallStatusLater

packages/client/src/app/AppShell.tsx:2790–2802  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

2788 }
2789
2790 function clearAppInstallStatusLater(fileName: string) {
2791 if (appInstallStatusTimeoutRef.current) {
2792 window.clearTimeout(appInstallStatusTimeoutRef.current);
2793 }
2794 appInstallStatusTimeoutRef.current = window.setTimeout(() => {
2795 appInstallStatusTimeoutRef.current = 0;
2796 setAppInstallState((current) =>
2797 current?.phase === "installed" && current.fileName === fileName
2798 ? null
2799 : current,
2800 );
2801 }, 1800);
2802 }
2803
2804 function rotateSelectedSimulator(direction: "left" | "right") {
2805 if (!selectedSimulator) {

Callers 1

installAppFileFunction · 0.85

Calls 2

clearTimeoutMethod · 0.80
setTimeoutMethod · 0.80

Tested by

no test coverage detected