You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we only support very static views. Similar to SwiftUI, we'd like to have support for some form of conditionals, repetitions (ForEach) etc. Some problems that come up:
Need for explicit view identification (Structural identity is no longer sufficient, SwiftUI solves this by requiring the data model underlying ForEach to be Identifiable or explicit id paths)
Need for rebinding the state (while this should mostly already be handled by the default View::render implementation which calls to the (usually derived) View::bind implementation, we should make sure to not accidentally leak state via the storage or similar)
We might also want to investigate how view lifecycle should work here e.g. if an If view switches back and forth between the branches, should we maintain the state within those views? Might be worth researching what SwiftUI does here.
The text was updated successfully, but these errors were encountered:
Currently, we only support very static views. Similar to SwiftUI, we'd like to have support for some form of conditionals, repetitions (
ForEach
) etc. Some problems that come up:ForEach
to beIdentifiable
or explicit id paths)View::render
implementation which calls to the (usually derived)View::bind
implementation, we should make sure to not accidentally leak state via the storage or similar)If
view switches back and forth between the branches, should we maintain the state within those views? Might be worth researching what SwiftUI does here.The text was updated successfully, but these errors were encountered: