basir / node-react-ecommerce

Build ECommerce Website Like Amazon By React & Node & MongoDB
https://node-react-ecommerce-app.herokuapp.com/
1.69k stars 794 forks source link

Error: Invalid hook call. Hooks can only be called inside of the body of a function component. #64

Closed OswalDev closed 4 years ago

OswalDev commented 4 years ago

I don't know what's causing this error, i've cheked all of the hooks used 2020-06-23 22_33_34-Settings 2020-06-23 22_32_33-Settings

basir commented 4 years ago

share your code on github as new repo to take a look.

OswalDev commented 4 years ago

https://github.com/OswalDev/Proyect_Shopliest

I was in the part 11 of the video, maybe i'm missing something, but i couldn't find where

OswalDev commented 4 years ago

I already fixed it, sorry. I was calling no funtion in the ProductScreen dispatch and made a small typo declaring one variable at ProductReducers.