-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Move user fetching to SS + parallelize some server-side calls #2932
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -55,11 +53,14 @@ export default async function RootLayout({ | |||
}: { | |||
children: React.ReactNode; | |||
}) { | |||
const combinedSettings = await fetchSettingsSS(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PSA: do not have sequential requests in server-side components!
} | ||
|
||
return ( | ||
<div className="mx-3 mt-6 gap-y-1 flex-col flex gap-x-1.5 items-center items-center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: seems like it was already in the code, but duplicate items-center and extraneous gap-y-1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
a4e2be9
to
7331ef7
Compare
Standardizing the fetching of user