SlotState
What a slot's output memo keeps: the branch on screen (its result is the value the output returns).
What a slot's output memo keeps: the branch on screen (its result is the value the output returns).
Import#
ts
import type { SlotState } from "@shadow-js/core/extend";
Signature#
ts
interface SlotState<C extends SlotChoice> {
/** The branch on screen, or undefined before the first build and while the memo rebuilds it. */
live: SlotBranch<C> | undefined;
}
Members#
| Name | Type | Description |
|---|---|---|
C |
C extends SlotChoice |
|
live |
live: SlotBranch<C> | undefined |
The branch on screen, or undefined before the first build and while the memo rebuilds it. |