Skip to main content

Module props

Module props 

Source
Expand description

Props — the content/attribute level of a host element — and its dirty/event bookkeeping (PropsDirty, UpdateEvents).

Structs§

Props
Props for a host element. Event handlers never cross the boundary — the reconciler replaces them with booleans (e.g. onClick: true) and keeps the actual function in a JS-side map. Visual styling lives entirely in Style; the fields here are content/attribute level.
PropsDirty
Which parts of a Props a delta update touched; drives which of the reconciler’s apply_* helpers run. Style granularity lives in StyleDirty; the other flags are per prop group.
UpdateEvents
The “act now” props of an update, split from the retained state: pushed into the live widget once and never stored, so an unrelated later delta can’t replay them (re-push a controlled value, re-clone a canvas display list). Absent fields mean “no event”, exactly like the pre-delta protocol.