splash.hold
Keeps the splash up after the first screen, until hide. Call it before the first render.
Verwendung
Wait for required startup work
import { signal, splash } from 'kuito';
const screen = signal<'loading' | 'home'>('loading');
const loadSession = () => fetch('https://example.com/session');
splash.hold(); // before the first render: keep it up
async function start() {
await loadSession();
screen.value = 'home';
await splash.hide({ fade: true }); // after the home screen is drawn
}Signaturen
(): voidParameter
Keine Parameter.
Rückgabe
void
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.