Closed Industrial closed 4 years ago
i cloned your repo and ran yarn dev , i dont see that error. I tried navigating to both index and about routes.
You are correct. How weird :S
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Bug report
Describe the bug
Invalid hook call. Hooks can only be called inside of the body of a function component.
To Reproduce
Expected behavior
My App Bar and Drawer (standard MaterialUI components) to render correctly.
Screenshots
Additional Info
This is where it breaks: https://github.com/Industrial/next-typescript-hooks-error/blob/master/src/app/components/Layout.tsx#L46
I'm not sure why the hook above it works which is a MaterialUI hook but one from React itself won't work ...
I guess it has to do with Server Side Rendering.