Next.js Discord

Discord Forum

Reusing the same ssr function in multiple places

Cane Corso posted this in #help-forum
Open in Discord
Cane CorsoOP
Hey, I created a getPosts function that gets the all of the posts from my backend and im using it in a few places, like 10 different components.
im currently awaiting the same function all over the app, will it add a delay/ms to the page loading? or it will use the same request data?
App directory.

0 Replies