Hey Andy! I know you’re into unidirectional data flows. Would love to hear your comment on Unicorn: github.com/salutis/Unicorn
Conversation
In an idiomatic app, where do action creators go? What’s the role of UIViewController? Should people still subclass it?
2
[2/2] In the app, I ended up with an empty VC that just hides the status bar. Is that weird? Views are totally independent.
1
No, I think that’s actually the right role. I suspect you’re onto something if you’re using an instance of UIVC, not a subclass.
3
Thanks! A question: Is it a good thing I got rid of Redux-like reducers? You’re obviously more experienced, what do you say?
2
But: it’s useful to be able to refer to actions by name (“my child’s requesting ’the increment’ action? delay that until xyz…”)
2
I see. Well, maybe a type-alias for State -> State would do. Actions could be named and stored as (XYZ) -> State -> State.
1

