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
StandupsList stores its model in an ObservedObjectthere isn't a StateObject further up the line, the model is just passed in as a parameter into the View's init. From what I understand if nothing retains the ObservableObject a new instance is created every time that view redraws its body. Was this intended behavior or left as an exercise to the reader?
Activity
mbrandonw commentedon May 23, 2023
Hi @BryanJBryce, the
StandupsListview holds onto its observable object like so:…which makes the parent responsible for providing the model. So it will not be recreated unless the parent decides to recreate it.
And the parent is the app entry point:
And that shows that only a single model is created for the entire duration of the app.
Also I am going to move this to a discussion since it isn't really an issue with the code sample.