safil-badarudeen / SocialMedia-MERN

MIT License
0 stars 0 forks source link

poblem in following suggestion user #1

Closed safil-badarudeen closed 1 year ago

safil-badarudeen commented 1 year ago

backend working right , but request from front end get rejected

safil-badarudeen commented 1 year ago

in follow(frontend) module while handling handle request not sending user id from body. also check does logic of assigning followers and following is as same in front end and backend

safil-badarudeen commented 1 year ago

fixed , by using redux for global state , so grabbed data from state (user who logged in ) using useDispatch and added id from state.