Skip to content
Discussion options

You must be logged in to vote

Hi @gerfarfel, I think there is no good solution to this right now. There is just an insurmountable impedance mismatch between value types and sharing state. Value types aren't meant for being shared. They get copied when you pass them around. And sure computed properties got the job done in a pre-observation world (though it was a bit of a mess), but now that no longer flies with observation tools.

Luckily we do have a solution coming. We will be releasing details for how to handle shared state in TCA soon, and it's only possible thanks to observation tools in Swift. So I would say you may need to hold off on the observation tools for the time being and then take another look once we rel…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@gerfarfel
Comment options

@mbrandonw
Comment options

@gerfarfel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mbrandonw
Comment options

Answer selected by gerfarfel
@gerfarfel
Comment options

@mbrandonw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants