mirror of
https://github.com/phranck/TUIkit.git
synced 2026-05-21 09:50:35 +00:00
50825d61da
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