Shenghan (Thor) Chen

Shenghan (Thor) Chen Front-end Developer at Catalyst IT - NZ

A passionate developer with several years of experience on several fields including web frontend, backend and mobile :)

Talk: Introduce redux-thunk-routine: Better Static Typing And Less Boilerplate Code With redux-thunk

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 ( 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: demo: code of demo: