Next.js Discord

Discord Forum

Same API call in layout and page component

Unanswered
Tornjak posted this in #help-forum
Open in Discord
TornjakOP
Hello! I was curious about something today. I'm trying to fetch things from the layout, to show data on the layout, but then I also need those data on the page itself. So I'm making a similar call in both places, and I wonder if this triggers two calls to that API.

Is that a problem you think ?

3 Replies