3 ms·
Except you've added a library. And the function is no less testable than the thunk. I fail to see why adding access to the entire application state is an advan
by weeksie 7y ago
Except you've added a library. And the function is no less testable than the thunk.
I fail to see why adding access to the entire application state is an advantage. This is just cargo culting. In fact that you held up that counter example as a preferable practice tells me everything I need to know about your library.
- r_p4rk 7y agoIf you feel so bad about including a "library", the redux-thunk middleware is trivial to implement yourself in about 6 lines of code.