luckkerr,
@luckkerr@mastodon.world avatar

@oscb from what I’ve seen it’s because StateObject has auto closure init and can preserve the object. State doesn’t have it and so always recreates your model when parent body is called. You should avoid expensive init in both cases anyway.

@helge has a lot of knowledge about this. (Hope you don’t mind a mention)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • SwiftUI
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • megavids
  • provamag3
  • tester
  • lostlight
  • All magazines