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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Given the following factory
How to use the
ObservableObjectas an@ObservedObjectin SwiftUIThe docs mention
@InjectedObjectthat uses@StateObjectunder the hood.Now, since the factory value will be cached, we don't really want to tie the object's lifecycle to the SwiftUI view that needs it.
There is no mention about this use case in the docs, hence my question.
What should I do in here?
thanks
Beta Was this translation helpful? Give feedback.
All reactions