More memoized requests
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { MembershipLevelEnum } from "@/constants/membershipLevels"
|
||||
import { myPages } from "@/constants/routes/myPages"
|
||||
import { getMembershipLevelSafely, getName } from "@/lib/trpc/memoizedRequests"
|
||||
import {
|
||||
getMembershipLevelSafely,
|
||||
getMyPagesNavigation,
|
||||
getName,
|
||||
} from "@/lib/trpc/memoizedRequests"
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
@@ -17,7 +21,7 @@ export default async function MyPagesMenuWrapper() {
|
||||
const lang = getLang()
|
||||
const [intl, myPagesNavigation, user, membership] = await Promise.all([
|
||||
getIntl(),
|
||||
serverClient().contentstack.myPages.navigation.get(),
|
||||
getMyPagesNavigation(),
|
||||
getName(),
|
||||
getMembershipLevelSafely(),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user