I love the ideas in Redux but if I wanted that much ceremony I'd be Catholic.
-
-
I like actions constants together. Reducer and selectors together. Lookup reducer functions ==
composition -
saw this today about splitting up reducer logic and placing inside action: https://candordeveloper.com/2017/03/03/ngrx-without-a-switch-statement/ …
-
That's a lot more boilerplate than a switch. That's fine to split up reducers that are getting too large, but mostly overkill.
-
agreed, it's more not less in aggregate. Something nice about having action definitions and reducer logic together
-
... which same file accomplishes. Maybe that's enough.
-
I get the appeal of having these defined together, and see why others ask "why not just use a class"?
-
ha! Something almost exactly along these lines.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.