Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The custom-element update behavior is covered through the actual Redact rendering path, with no remaining actionable merge risk identified. Pre-merge checks |
|
React 19 assigns a prop on a dashed tag as a property whenever the element
declares one, and only writes an attribute otherwise. setProp had no such
branch: every prop outside the IDL allowlist became an attribute, so an
object value reached a web component as the string "[object Object]".
Components whose API is a property — `<number-flow-react data={...}>` — took
their value only from whatever the library assigned itself on mount and never
saw another update.
The other dashed names React excludes are SVG elements, already ruled out by
`isSvg`; `annotation-xml` is the one that reaches here through MathML.
The added bytes fit the existing size budgets after rebasing onto main.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jb4ndC7Q2e5LUYo4DdXpZ4
632f2ce to
817bc8a
Compare
🦋 Changeset detectedLatest commit: 817bc8a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
React 19 assigns a prop on a dashed tag as a property whenever the element declares one, and only writes an attribute otherwise. setProp had no such branch: every prop outside the IDL allowlist became an attribute, so an object value reached a web component as the string "[object Object]".
Components whose API is a property —
<number-flow-react data={...}>— took their value only from whatever the library assigned itself on mount and never saw another update.The other dashed names React excludes are SVG elements, already ruled out by
isSvg;annotation-xmlis the one that reaches here through MathML.The added bytes fit the existing size budgets on current main, so
scripts/size-check.mjsis unchanged.Summary by CodeRabbit
Bug Fixes
data-*, andaria-*values continue to use attributes, while SVG and MathML behavior remains unchanged.Documentation