splash.hold
Keeps the splash up after the first screen, until hide. Call it before the first render.
Utilização
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
}Assinaturas
(): voidParâmetros
Sem parâmetros.
Devolve
void
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.