3 ms·
This is effectively the same solution as the authors second option.
by ncphillips 9y ago
This is effectively the same solution as the authors second option.
- pg_bot 9y agoYep! However the reason why I've written this was not to demonstrate my own creativity it was more to show that the concerns that the author had with option 2 disappear when you approach the problem from a different perspective. Your codebase doesn't become more complex as you add more actions since the loading reducer doesn't need to change. You are also less likely to run into bugs since a boolean is a better primitive for the behavior he is describing.