mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-24 19:41:51 +01:00
A kept run records the memory owners it registered and the generation of ended shown lives; a view whose components' shown memory was evicted or ended since runs when it is shown again. A kept or saved binding in a view's props feeds the context's count of writes made outside a component's edit (set_saved_value and forget_saved per key, forget for session memory), read through the view's key, and those writes note the edit for the frame. A record whose run asked for a discard pass is never replayed: egui's count of discard requests is compared between open and close, and layout memory, whose ask reaches egui only in the end hook, notes its own. A run keeps the key from before it, so a view that writes through its props runs once more from the written value before it replays. A memoized view's entry id is claimed once per pass, as stage bases are. Check inputs are keyed only when a view takes the key (NameCheck and the binding check box their inputs), PresetNames borrows the library and walks its names, a Tracked field binding keys by address and write count, and caption icons read again take the next generation.