More memoized requests
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user