You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm wondering if it's necessary to add getStaticProps to every page, if the only translation file is common.json? I would imagine this one loads automatically or is that not the case?
If not is it possible to use getStaticProps in _app.js/tsx instead? I added it but no new props came through in pageProps so I'm unsure if that's a valid use. Seems wasteful to have to add it to every page when every page is the same.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I'm wondering if it's necessary to add
getStaticProps
to every page, if the only translation file is common.json? I would imagine this one loads automatically or is that not the case?If not is it possible to use
getStaticProps
in_app.js/tsx
instead? I added it but no new props came through inpageProps
so I'm unsure if that's a valid use. Seems wasteful to have to add it to every page when every page is the same.Thanks
Beta Was this translation helpful? Give feedback.
All reactions