New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
THE POSTS DONT RENDER #145
Comments
If you are using configureStore instead of createStore because it says in VSCode that createStore is deprecated then probable that is the error. Atleast it was for me. Simply just ignore what VSCode says about createStore and just use it. I hope that helps |
Try with configureStore instead of createStore |
Still doesn't work |
Have you set the currentId and setCurrentId |
Hi @ProHaies. 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). Any ideas on what the issue might be? |
Hi @outterspacem check the currentId if it's placed properly like in the video otherwise I have no idea |
@ProHaies update: I solved the issue by making sure useEffect(() is under const dispatch = useDispatch(); |
Issue fixed!
NPMnpm install @reduxjs/toolkit Yarnyarn add @reduxjs/toolkit
Job done! |
The posts refuse to show up even though they are present in the database and the API.
The text was updated successfully, but these errors were encountered: