Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda