mirror of
https://github.com/phranck/TUIkit.git
synced 2026-06-20 09:54:37 +00:00
Implement SwiftUI-style structural identity so @State values survive full view-tree reconstruction on every render pass. State is keyed by ViewIdentity (path-based) and property index in a central StateStorage. - Add ViewIdentity (path-based structural identity for views) - Add StateStorage with GC and branch invalidation - Refactor @State to self-hydrate from StateStorage during init - Set root hydration context in RenderLoop before app.body evaluation - Extend RenderContext with identity propagation helpers - Add ConditionalView branch invalidation on switch - Remove scene cache from RenderLoop (app.body evaluated fresh per frame) - Enhance Example App pages with @State (ButtonsPage, OverlaysPage, ContainersPage) - Update DocC articles (StateManagement, RenderCycle) - Add 12 tests for state storage identity