You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error when converting the next.js app to use makeStyles
Unhandled Rejection (Invariant Violation): Hooks can only be called inside the body of a function component.
47 |
48 | // Get the context of the page to collected side effects.
49 | const pageContext = getPageContext();
> 50 | const page = renderPage((Page) => (props) => {
51 | //const pageWithContext = page as Component<InjectPageContext>;
52 | return (
53 | <JssProvider registry={pageContext.sheetsRegistry} generateClassName={pageContext.generateClassName}>
Would it be possible to update the example or provide tips on how to convert?
The text was updated successfully, but these errors were encountered:
I'm getting an error when converting the next.js app to use
makeStyles
Would it be possible to update the example or provide tips on how to convert?
The text was updated successfully, but these errors were encountered: