Be Careful When you Initialize a StateObject Property Wrapper — https://jaredsinclair.com/2024/03/14/state-object-autoclosure.html

There’s an easy pitfall to fall into, and it can totally undermine the reason you're using StateObject in the first place.

Jared Sinclair | Be Careful When You Initialize a State Object

@jaredsinclair Good article, but I tried your suggestion and the compiler doesn't like it…?
@adam Thanks. I was typing the code samples straight into Markdown from memory.
@adam I'll push up some fixes in a bit.
@adam This is exactly why an autoclosure here is so misleading.