Replies: 1 comment
-
How's that SEO related? What's happening here is that Activity components from React, https://react.dev/reference/react/Activity, are being used for the routes you are visiting, https://nextjs.org/docs/app/getting-started/cache-components#navigation-uses-activity, not all routes are kept only some, and it is only as you navigate through the site. This is why I wonder why you think SEO might be negatively impacted? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I upgraded my website to next.js version 16 and I enabled cache components. I have a prisma function where it makes sense to have a cached response. Today I noticed, that my DOM contains sections from pages which I opened before the current page. These sections are marked with display none but in fact my page contains multiple h1 tags and therefore have an unclean SEO structure.
Additional information
my next config
the function where I'm using it
The issue im facing doesn't belong to the above function, even if I just enable cacheComponents in the next config and don't use it in the whole project, the described behavior still applies.
I have no idea what I can do
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions