Std.Ui.changes
1 declaration
fn
changes: &Std.Html.Html -> &Std.Html.Html -> Array[Std.Ui.Change]This is a callable function.
What it does
The changes that turn one screen into the other.
Both trees are walked together. A node whose element name changed is
replaced whole rather than reconciled, because an element that became a
different element shares nothing with what it was, and matching its children
anyway produces a tree that is wrong and renders plausibly.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
