Skip to content
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

Error: Invalid hook call #72

Closed
dayahn0731 opened this issue Sep 22, 2021 · 0 comments
Closed

Error: Invalid hook call #72

dayahn0731 opened this issue Sep 22, 2021 · 0 comments

Comments

@dayahn0731
Copy link

First of all, thanks so much for your videos! Really helpful and I'm learning a ton.

Right now, I'm following your tutorial, and I'm at 11:18 in your second video. I'm sure I have everything that you had up to now.

I'm trying to see the posts in the app, but I keep getting this error.
Screen Shot 2021-09-22 at 3 25 42 PM

I can see in the database the submitted post data, so it is able to communicate.

If I change the code in Post.js in the Post component to

const Post = ({ post }) => {
const classes = useStyles();

return(
    <h1>POST</h1>

I can see "POST" times the number of items in the database... I really have no idea what's going on. I tried to see if I have mismatching versions of react, but I don't think that's it.

Any ideas? Thanks in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant