Closed david-randoll closed 2 years ago
If you have multiple features then you could end up having them reference each other's actions.
I'd say to put the actions in the main store folder, and then your effects and reducers anywhere you want to, put them in your state record of you wish.
But they all work, so it's up to you.
Hello,
I like to have everything in one file for discoverability purposes. It seems using records makes the syntax a lot simpler. They both works but any reasons against just going with option 2?
Option 1:
Option 2:
Similarly, both of the below work but option 2 is a lot simpler. Any reasons against putting the reducer directly within the action?
Option 1:
Option 2: