pivotick - v2.0.1
    Preparing search index...

    Interface AsyncContentOptions

    What the library shows while a content hook's promise is in flight, and what it shows if that promise rejects. Both are optional — the built-in skeleton and error affordance follow the active theme.

    Synchronous hooks never see either of these: they commit in the same frame, exactly as they always did.

    UI: {
    asyncContent: {
    placeholder: (surface) => surface === 'tooltip' ? 'Loading…' : mySkeleton(),
    error: 'Could not load',
    },
    }
    interface AsyncContentOptions {
        error?:
            | Renderable
            | ((surface: AsyncSurface, error: unknown) => Renderable);
        placeholder?: Renderable | ((surface: AsyncSurface) => Renderable);
    }
    Index

    Properties

    Properties

    error?: Renderable | ((surface: AsyncSurface, error: unknown) => Renderable)

    Shown in the slot when an async hook rejects. An aborted render is not a failure and never reaches this.

    a compact themed error line
    
    placeholder?: Renderable | ((surface: AsyncSurface) => Renderable)

    Shown in the slot while an async hook is pending.

    a themed skeleton