DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Next.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Next.js
What problem does wrapping a data-fetching function in React's cache() solve when used by both generateMetadata and the page?
A
It makes the data update in real time
B
It ensures the function executes only ONCE per request, even though both generateMetadata and the page call it — avoiding a duplicate fetch
C
It encrypts the data
D
It's required for TypeScript to compile
Check Answer