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

526
Views
La acción de envío en thunk da como resultado un error: no se puede obtener el estado indefinido

Aquí está la acción en sí:

 import actionFromAnotherReducer from '../subfolder/reducer' export const asyncAction = createAsyncThunk( 'reducerName/actionName', async( data, { dispatch, getState } ) => { return somePromise.then(response => { dispatch(actionFromAnotherReducer(response)) }) } )

Y aquí es donde aparece este error Cannot read properties of undefined (reading 'getState') : The above error occurred in the <Provider> component . La cuestión es que cuando elimino el envío (acción), todo funciona, y también si envío una acción desde el mismo reductor de carpetas, también funciona. ¿Como arreglarlo?

about 4 years ago · Santiago Gelvez
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!