Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

leondixon
Copy link
Contributor

@leondixon leondixon commented Sep 17, 2025

πŸ”— Linked issue

fixes #3466

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Any change in the props.data will trigger the computed tags to be recomputed, extracting the props.data.MDC should scope Vue's reactivity to track only the props.data.mdc instead of props.data. Resolves #3466.
props.data is doing an optional check, which I removed as the props seem to default this to an empty object, the typing indicates it's a Record<string, any> type, is there a reason for the optional chaining?

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

vercel bot commented Sep 17, 2025

@leondixon is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

pkg-pr-new bot commented Sep 17, 2025

npm i https://pkg.pr.new/@nuxt/content@3544

commit: 8ba959a

@leondixon leondixon changed the title fix: stop data changing from refreshing the ContentRenderer fix: stops props.data rerendering ContentRenderer Sep 17, 2025
Copy link
Member

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing optional chaining look fine

@farnabaz farnabaz merged commit f5aa821 into nuxt:main Sep 19, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Components inside ContentRenderer re-rendered when data prop changes
2 participants