bradtraversy / proshop_mern

Shopping cart built with MERN & Redux
1.99k stars 1.18k forks source link

Redux state #38

Closed syedsimanta03 closed 3 years ago

syedsimanta03 commented 3 years ago

From where we get getState on some actions

export const getUserDetails = (id) => async (dispatch, getState) => {

https://github.com/bradtraversy/proshop_mern/blob/master/frontend/src/actions/userActions.js

where it lives ?

basir commented 3 years ago

it sets by redux-thunk middleware. please ask questions on Udemy Q/A and only create issues for bugs in this repo.