Skip to content
RED SAG Skills
mediumStudy question · answer published in Next.js interview questions, so no pointsnextjsdata-fetching

Same DB query in layout and page

The layout and the page both call getUser(id), which queries the database. How do you make it run once per request?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions