SSR / API
foldkit-ssr/binder
foldkit-ssr/binder (Phase 6, Bouts 6.5–6.7): answers declared presses
before the Foldkit runtime loads, writes DOM anchors as text/attributes/
hidden/order, and hands over its updated Model and queued Messages to
SSR.hydrate once the runtime wakes.
Namespaces
Functions
applyAnchors | Write evaluated binding values to anchored elements under root (text only, never HTML). |
canAnswerLocally | Whether every path transition writes is covered by at least one bound anchor's reads. |
start | Start the delegated binder on a server-drawn page. |
Values
ANCHOR_ATTRIBUTE | Attribute written on every anchored element by the server. |
BINDER_KEY_ATTRIBUTE | Attribute naming a child element's key inside an Order-bound container. |
BINDER_MESSAGE_ATTRIBUTE | Attribute naming the Message tag an element dispatches. |
BINDER_PAYLOAD_ATTRIBUTE | Attribute carrying the JSON-encoded payload for data-fk-msg (optional; defaults to {}). |
BINDER_TOUCHED_ATTRIBUTE | The attribute written on controls the pre-boot binder updated (holding a space-separated list of mutated attribute names, or empty for field state). |
Interfaces
BinderEnvelope | |
BinderHandle | |
BinderManifest | |
BinderOptions | |
BinderTransition | |
BinderTransitionLike | Any declared Transition over Model, regardless of its Input, Emit, or Supplied types. |
Bindings |