effex-monorepo
    Preparing search index...

    Interface Slot<Node>

    A slot is a swappable content placeholder. Used by Boundary.suspense to swap fallback content with actual content without needing a container element.

    interface Slot<Node> {
        clear: () => Effect<void>;
        marker: Node;
        setContent: (content: Node) => Effect<void>;
    }

    Type Parameters

    • Node

      The node type for this renderer

    Index

    Properties

    clear: () => Effect<void>

    Clear the content of this slot. Removes the current content, leaving only the marker.

    marker: Node

    The marker node that represents this slot in the tree. This is typically a Comment node in DOM, or a VComment in SSR.

    setContent: (content: Node) => Effect<void>

    Set the content of this slot. Replaces any existing content with the new node.