Skip to content
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

Merged
merged 4 commits into from
Oct 27, 2024

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Oct 26, 2024

Standardizing the fetching of user

Copy link

vercel bot commented Oct 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 27, 2024 2:40am

@@ -55,11 +53,14 @@ export default async function RootLayout({
}: {
children: React.ReactNode;
}) {
const combinedSettings = await fetchSettingsSS();
Copy link
Contributor Author

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">
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@Weves Weves force-pushed the fix-curator-role-issue branch from a4e2be9 to 7331ef7 Compare October 27, 2024 02:37
@Weves Weves enabled auto-merge October 27, 2024 02:38
@Weves Weves added this pull request to the merge queue Oct 27, 2024
Merged via the queue into main with commit 0c2cc74 Oct 27, 2024
7 checks passed
@Weves Weves deleted the fix-curator-role-issue branch January 2, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants