Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

One component’s signed wire envelope: the state it carries between requests and the checksum that proves the browser did not change it.

The client round-trips the envelope as one minified JSON string per component. Its keys are always data, memo, and checksum, in that order, so the same snapshot always encodes to the same bytes. memo.children is the one entry the client may rewrite freely — it tracks the nested components the browser holds — so the checksum leaves it out.

Structs§

Snapshot
A component’s state between an initial page render and the browser’s next update.