Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
does createAsyncThunk create a Thunk

I was Reading the Redux Docs I was a bit confused with createAsyncThunk

  1. does createAsyncThunk create A thunk
  2. are thunk and createAsyncThunk completely two different Things
  3. does createAsyncThunk Replace Thunk?
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Yes it really does what its name suggests.

  • thunk is the name of the middleware that allows action creators to return functions instead of plain objects. These functions are called with helpful things like dispatch and getState as arguments, so you can orchestrate how other actions are dispatched, wait for asynchronous things, etc..
  • Actions creators that return a function instead of an object are also called thunks when the thunk middleware is used in a project
  • createAsyncThunk does not replace thunk, it is a more concise way of writing a thunk. They typically follow the same pattern so createAsyncThunk automates that away. createAsyncThunk in fact requires the thunk middleware to be used, which is taken care of by the store setup from redux-toolkit (where createAsyncThunk comes from).
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!