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
Reducing server side requests on every page, when all pages need the same data generated on server side
Reducing code duplication
Background
This feature is must have, because there is currently no alternative to it. For example i want to generate some data for the schema of the page so that google can read it on every page of the website. In order to do that now i need to make a request in every page's getServerSideProps, instead of making one request in getStaticProps of _app.js
Proposal
The feature need to work like getStaticProps of any other "non-_app.js" page
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
This feature is must have, because there is currently no alternative to it. For example i want to generate some data for the schema of the page so that google can read it on every page of the website. In order to do that now i need to make a request in every page's getServerSideProps, instead of making one request in getStaticProps of _app.js
Proposal
The feature need to work like getStaticProps of any other "non-_app.js" page
Beta Was this translation helpful? Give feedback.
All reactions