Dynamic Navbar content in an otherwise static page #16722
Unanswered
yasserelsaid
asked this question in
Help
Replies: 1 comment
-
If you're using mdx for your static pages, consider the following: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a navbar that changes its content depending on whether the user is signed in or not. I want to use getStaticProps to get the props for the rest of the page but this makes the navbar pre-rendered and if the user logs in it stays the same.
The navbar is implemented in the _app page as it is shared between all the pages.
Here is my code:
I am wondering if there is any way I can make the content of the page statically generated using getStaticProps but the navbar props be dynamic so when the use logs in only the nav bar changes
Beta Was this translation helpful? Give feedback.
All reactions