-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Are there plans to make the NotionRenderer compatible with the Next.js App Router? #511
Comments
In Next 13 the components are server components by default which will not work with some of react client-side features like useeffect(). you could simply make a walkaround by just moving the interactive code to a client component by using "use client" at the top of the file. Here is an example: ./page.jsx
./components/NotionPage.jsx
|
It worked! Thanks, for the help :) |
Is It planned to work with App Router? "use client" is no option as its bad for SEO... |
@Reomar Thanks! You saved my two hours. 🙂 |
@Reomar Is there any way to make it works with the nextImage? |
How does this work if you wanna build a static site? |
I want to use this component with the App Router for an upcoming project but I was not able to make it work.
I don't know if the problem relies on the
notion-client
not working currently ( issue #498 ), but if the problem persists because the library is not compatible with NextJS 13, then I would like to help somehow.Thanks in advance
The text was updated successfully, but these errors were encountered: