More memoized requests

This commit is contained in:
Linus Flood
2024-10-28 11:20:59 +01:00
parent f5798562cc
commit 5e8efb4a27
8 changed files with 44 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
import { Fragment } from "react"
import { logout } from "@/constants/routes/handleAuth"
import { serverClient } from "@/lib/trpc/server"
import { getMyPagesNavigation } from "@/lib/trpc/memoizedRequests"
import Divider from "@/components/TempDesignSystem/Divider"
import Link from "@/components/TempDesignSystem/Link"
@@ -12,7 +12,7 @@ import { getLang } from "@/i18n/serverContext"
import styles from "./sidebar.module.css"
export default async function SidebarMyPages() {
const navigation = await serverClient().contentstack.myPages.navigation.get()
const navigation = await getMyPagesNavigation()
const { formatMessage } = await getIntl()
return (