DEV Community

Discussion on: Killing bad parts of Redux. Say goodbye to boilerplate.

Collapse
 
klis87 profile image
Konrad Lisiczyński • Edited

Hi,

Yes, but redux-toolkit missed several things important for me, hence I created redux-smart-actions. Things I missed:
1) I don't like syntax like const doSomething = createAction('doSomething'), with my library you don't need to pass this duplicated name at all, saving you a little time and name duplication
2) createSmartAction from my lib has an automatic ability to protect against type collisions
3) toolkit doesn't have something like createThunk - thunks creator with attached constants like for normal actions
4) I know that 1, 2 is partially solved by slices, but I don't like them, for one thing I prefer writing actions as top level functions, another thing is that slices create reducers, and often I use global reducers and distributed actions, usually with my another library github.com/klis87/redux-requests