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
This shouldn't be built into every view, but if we want to allow widgets to be built on top of Buckle, we need to investigate how state can be stored and persisted for a view. Many widgets would have ephemeral state, which nonetheless needs to persist between re-renders.
SwiftUI does this using property wrappers, where the runtime inspects views for @State properties and automatically persists them.
React handles it by having a more complicated life-cycle, where views are managed by stateful components.
Ideally, we want something that is transparent to users if they don't care about it, but can be used if they wish to make their own stateful widgets on top of Buckle primitives.
The text was updated successfully, but these errors were encountered:
This shouldn't be built into every view, but if we want to allow widgets to be built on top of Buckle, we need to investigate how state can be stored and persisted for a view. Many widgets would have ephemeral state, which nonetheless needs to persist between re-renders.
SwiftUI does this using property wrappers, where the runtime inspects views for
@State
properties and automatically persists them.React handles it by having a more complicated life-cycle, where views are managed by stateful components.
Ideally, we want something that is transparent to users if they don't care about it, but can be used if they wish to make their own stateful widgets on top of Buckle primitives.
The text was updated successfully, but these errors were encountered: