Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

111
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda