-
-
Notifications
You must be signed in to change notification settings - Fork 704
Description
Environment
- Operating System:
Darwin
- Node Version:
v22.16.0
- Nuxt Version:
4.0.0
- CLI Version:
3.26.2
- Nitro Version:
2.12.0
- Package Manager:
[email protected]
- Builder:
-
- User Config:
modules
,devtools
,future
,compatibilityDate
- Runtime Modules:
@nuxt/[email protected]
- Build Modules:
-
Version
v3.6.3
Reproduction
https://github.com/GerryWilko/content-key-repro
Description
When using the data
prop on a ContentRenderer
we have noticed an issue where all components inside that content file are re-rendered if the data
prop is mutated in any way.
We have used bound data in our project to enable the use of mustache syntax inside markdown files to render dynamic data.
This appears to be a breaking change introduced in Nuxt Content v3.5.0. I believe the culprit could be #3283.
In this PR it appears some changes were made to how the component list was extracted from data
. This seems to be the only obvious change inside 3.5.0 that may have caused this issue.
On the reproduction you can see that the timestamp on the Counter
component changes every second as the dataProp is mutated. Interestingly it looks like the rest of the content in the md file doesnt flash and re-render so it only appears to affect components again pointing towards this change in pr !3283
Additional context
No response