Should viewStore be a StateObject? #934
Replies: 2 comments
-
(I have the feeling that this isn't an issue with the library per se, and this will be probably moved to a Discussion.) I've experimented myself a few months ago with a I didn't continue with the idea at this point for three reasons:
I'm sure others will pitch-in with more ideas. |
Beta Was this translation helpful? Give feedback.
-
We are certainly open to turning it into a Also, I'm converting this issue to a discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Shouldn’t viewStore in WithViewStore be a StateObject and not an ObservedObject so that it’s tied to the lifetime of the view and not recreated when the view struct is?
Beta Was this translation helpful? Give feedback.
All reactions