I'm not worried about the transformations; I'm worried about the event handlers. :/
Conversation
Event handlers are just another form of input. View models transform all of these inputs into data for presentation.
2
Sometimes they transform those inputs into data; sometimes they perform I/O.
1
Everything Is A Signal™
2
2
I… I don't think that's helpful in this discussion. ;)
1
I think it’s relevant, because it parallels some other conversations that we’ve had. We use signals to encapsulate effects.
1
It bucks the conventional understanding of how signals might be used, but it means that we don’t need this distinction.
1
Our view models are a collection of inputs and outputs. Some of which are effectful. All of which are signals.
1
What does it mean for an output to be effectful?
1
e.g., resulting in the presentation of a new view controller, or the view model beginning a network request.
1
Replying to
OK. How do you express those effects as outputs in the interface?
Replying to
My point is exactly that _you don’t need to_. Why is it important? The effects are an implementation detail.
2
The truth is in the signal events. Whether they trigger effects is irrelevant, because you focus on the stream of values.
1
Show replies

