Where to fetch site wide data? #227
Unanswered
augustomallmann
asked this question in
Q&A
Replies: 2 comments 7 replies
-
You can fetch the data and put it a context in the App then consume it in the head/footer/whatever section. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I thought about using react context to spread the data, but when you say |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
What's the best practice on fetching site wide data such as header and footer content? I tried to make a
getEdgeProps
on theapp
page, but it returns undefined no matter what I do.Should I fetch the same content on every page? Wouldn't it cause unnecessary data fetching on every page load as it'd fetch data already consumed?
What I tried to do under
app
page was:Beta Was this translation helpful? Give feedback.
All reactions