How to insert an async uploaded image?

Hmm, really don’t know how to accomplish this. I always thought that the view is just a reference to one and the same object and state is constantly deep copied and returned or isn’t that true?

Yes, view is a mutable object that has its state property updated when you call updateState or update, and state objects are persistent immutable values that are recreated (sharing as much of the old structure as possible) when updated.

I’m not sure how that makes it difficult to create a closure that has access to the current state, though.

1 Like