adrianhajdin / project_mern_memories

This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
https://youtube.com/playlist?list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu
4.95k stars 1.83k forks source link

Post doesn't show up on the screen although present in the database. #155

Open FALAK097 opened 1 year ago

FALAK097 commented 1 year ago

errorPostnotShowing Post is present in the database but doesn't show up on the screen.

outterspacem commented 1 year ago

Hi @FALAK097 I am almost encountering the same issue - my posts are displayed fine at the time of creation and they even get created in my MongoDB cluster but I don't see anything in my browser console + I get the circular progress spinner when I reload the page (the posts don't get fetched). Did you manage to solve the issue?

Update: I solved the issue by making sure useEffect(() is under const dispatch = useDispatch(); in App.js