Skip to content
Discussion options

You must be logged in to vote

@leerob - Yeah you got all my points mentioned above correct.

As it currently stand:

I am making a getServerSideProps which will get two endpoints (header/footer data, and the page data) in the [...index].jsx file, this function runs every page route change.

Base from what you mentioned moving the header and footer component and api call to _app.js, do I use getServersideprops function in there so that it makes the call only one time?

I would provide an example but the code and data I am using is all confidential :/

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@leerob
Comment options

@leerob
Comment options

@kevinkashou
Comment options

@leerob
Comment options

Answer selected by kevinkashou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants