splash.hide
Hides the splash once the views the app rendered so far are on screen, at once or with a fade. Settles when it is gone.
Usage
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
}Signatures
({ fade }?: { fade?: boolean; }): Promise<void>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
__0 | { fade?: boolean;} | No | — Default: {} |
Returns
Promise<void>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.