Skip to content

Stores, Reducers and Effect Logic #438

Answered by mrpmorris
realisable asked this question in Q&A
Discussion options

You must be logged in to vote

The number of properties is irrelevant, what matters is whether or not they all belong together, only you can answer that.

As for number of lines of code. They should do what they need to do, and no more. If that means 1000 lines then it does; however, you should consider splitting them up into separate methods at least - you might want to consider having code that you can reuse (services for effects, static methods for reducers).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@realisable
Comment options

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