Skip to content

fingerprintNodes

fingerprintNodes(nodes): string

Defined in: packages/core/src/message/node.ts:135

A deterministic structural fingerprint of one pre-order node list.

The host already walks its tree once per commit for interaction ids and routing. Hashing the same list here answers “did the visible tree change?” without serializing the whole Component payload a second time. It covers a superset of what the wire emits (every tag, text, id and prop), so a change is never missed; an occasional extra send is acceptable.

readonly BotNode[]

string