Next.js Discord

Discord Forum

App dir translations dynamic pages.

Unanswered
Siamese Crocodile posted this in #help-forum
Open in Discord
Siamese CrocodileOP
Hi. I am creating translations the same as in nextjs docs and I am wondering what if I've a dynamic page that fetches dict and also other data - I dont think I am doing this properly below. It does fetch the dict everytime - I think I should somehow cache the results? Should I?

// page.tsx

export async function Home({ lang }){
  await getData()
  const dict = await getDict(lang)

0 Replies