(Nuxt project) I am stuck finding a solution related to show non-authenticated and authenticated content on the same page.
I have two possible solutions in my mind but they have some caveats.
The first one, decides on the mounted method if the user can see the authenticated content but I couldn't solve the flickering content issue, this is the demo for that approach:
https://60f08a8293123d00e57c14e8--happy-minsky-1268c6.netlify.app/
Click the login button and reload the page, you will see the flickering content
My second approach, it is using the null to avoid both, the non-authenticated and authenticated content until the app reaches the mounted method, the problem with this solution is it is not search engine friendly because there is no static content generation, please compare this two links:
Generated from this solution: https://gist.github.com/ltroya-as/fbbdce2b3dc30063e9c4ec7e93e3aba1#file-index-generated-file-html-L522
Is there a way to make the second solution more search engine friendly? I am worried that the second solution affects search engine results.
Repository with instructions: https://github.com/ltroya-as/nuxt-rehydratation-example
--- Update
My project is configured in full static mode