pivotick - v2.0.1
    Preparing search index...

    Interface RenderContext

    Passed as the last argument to every async-capable content hook, so a consumer can abandon work the UI no longer needs.

    Existing synchronous hooks simply ignore it — a one-argument callback stays assignable, and nothing about its timing changes.

    renderNodeExtra: async (node, { signal }) => {
    const res = await fetch(`/enrich/${node.id}`, { signal })
    return renderChips(await res.json())
    }
    interface RenderContext {
        signal: AbortSignal;
        isStale(): boolean;
    }

    Hierarchy (View Summary)

    Index

    Methods

    Properties

    Methods

    Properties

    signal: AbortSignal

    Aborted when this render is superseded — the tooltip hid or reopened for another element, the selection changed, the panel was refreshed or removed, the graph was destroyed. Forward it to fetch and in-flight requests are cancelled instead of leaked.