Skip to content

Commit

Permalink
refactor: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
8lane committed Oct 14, 2024
1 parent f4b0700 commit 68ba928
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/components/cms/pages/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { cache } from 'react'

import { View } from '@/app/components/ui/ukhsa'
import { getLandingPage } from '@/app/utils/cms'
import { renderSection } from '@/app/utils/cms.utils'

import { RelatedLinksWrapper } from '../../ui/ukhsa/RelatedLinks/RelatedLinksWrapper'

const getPage = cache(getLandingPage)

export default async function LandingPage() {
const { body, related_links_layout: relatedLinksLayout, related_links: relatedLinks } = await getLandingPage()
const { body, related_links_layout: relatedLinksLayout, related_links: relatedLinks } = await getPage()

return (
<View>
Expand Down

0 comments on commit 68ba928

Please sign in to comment.