A passionate developer with several years of experience on several fields including web frontend, backend and mobile :)
It is common to use redux-thunk to create async actions when using redux, but it is also common to write a lot of boilerplate code following the common procedure.
It is even worse when we want to provide type information for static type checker such as TypeScript and Flow.
How about creating a small library to generalize the creation and dispatching of async actions which keeps typing in mind and prevent us from writing the boilerplate code again and again?
That's why I write redux-thunk-routine (https://www.npmjs.com/package/redux-thunk-routine). The readme can be regarded as the introduction and the test coverage is 100%.
I also write a blog and demo to show that we can properly implement global loading state and error state within a few lines of code by using this library. blog: https://medium.com/@zzdjk6/implement-global-loading-and-error-state-with-redux-thunk-routine-and-typescript-b278f93e99fd demo: https://zzdjk6.github.io/demo-global-loading-state/build/index.html code of demo: https://github.com/zzdjk6/demo-global-loading-state