Next.js Discord

Discord Forum

async RootLayout bad?

Unanswered
Expensiveee posted this in #help-forum
Open in Discord
Hello, i'm trying to integrate https://next-intl.dev/, and in their docs they have a layout that's async, what issue could this cause as for SEO/Loading or anything else ? Is it really bad or it's fine

2 Replies

making layouts async is not bad, it just means that you are going to use asynchronous APIs, in this case, params.
it is still a server component and doesn't affect SEO or anything
(what would be bad is making the layout client component with "use client", then you would be opting out of pretty much all nextjs features)
Chum salmon
hm? async is ssr by default, how can it possibly affect seo?