Replies: 1 comment 5 replies
-
The approach I'd recommend is to use a higher-order component across all pages. This requires a bit of code duplication but avoids disabling static optimization everywhere when using Check out these threads and see if they help: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on an app that needs to have the user authentication context on all the pages of the app.
As far as I understand, there is a way to do that with
getInitialProps
in_app.js
. I was wondering if there are any directions/documentation on how to implement it.Any help/advice would really help! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions