DEV Community

Discussion on: What are "Thunk" and `createAsyncThunk` in Redux Toolkit?

Collapse
 
amir2mi profile image
Amir M. Mohamadi

Thanks for informing.
Redux toolkit is awesome, but the new syntax is just verbose, these kinds of changes just ruin developer experience and increase complexity.

Collapse
 
phryneas profile image
Lenz Weber

The new syntax is necessary to support these features with the TypeScript declarations. Even if you are using JavaScript, that means you will get autocomplete in your editor that you could not have before - since the editor will be using TypeScript under the hood to give you that autocomplete.

So these changes are there to give you better developer experience.

Thread Thread
 
amir2mi profile image
Amir M. Mohamadi • Edited

I didn't know about it, that would be a big help!
My biggest issue with Redux and its related tools is this kind of changes, so you have to learn both ways to make sure you can handle a simple task.