Async fetch data once on app startup #21674
Unanswered
matthewthomsonnz
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I need to fetch data only once when I first run the app. Like if I were to use getStaticProps in the _app.js file.
I don't want to use getInitialProps because it forces SSR site wide and I will be building to static files.
Is there seriously no built in way to do this? I've exhausted every google search
Beta Was this translation helpful? Give feedback.
All reactions