Skip to content

chore: fix so that TSDiff doesnt return non-existant layout changes#10059

Open
LFDanLu wants to merge 2 commits into
mainfrom
fix_tsdiff_type_processing
Open

chore: fix so that TSDiff doesnt return non-existant layout changes#10059
LFDanLu wants to merge 2 commits into
mainfrom
fix_tsdiff_type_processing

Conversation

@LFDanLu
Copy link
Copy Markdown
Member

@LFDanLu LFDanLu commented May 12, 2026

TSDiffer was claiming that the layouts lost getVisibleLayoutInfos/virtualizer/etc from their API but it turned out to be that DocsTransformer wasn't processing the Layout extends properly anymore via DocsTransformer since it became multiline from the oxlint formatting changes

See https://astexplorer.net/#/gist/451958d4b4a31868f0896664e2291a92/15ffdc9fe4097cfdb9f997f12d550fdff4761205 for a validation of what Layout's ast returns (click on Layout for the multiline ListLayout definition vs the single line ListLayout defintion)

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Check the TSDiff reported and verify that the changes look correct

🧢 Your Project:

RSP

differ was claiming that the layouts lost getVisibleLayoutInfos, virtualizer but that turned out to be that it wasnt processing the Layout extends properly anymore via DocsTransformer
@rspbot
Copy link
Copy Markdown

rspbot commented May 12, 2026

Copy link
Copy Markdown
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

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

well that's annoying that whitespace changes its type

@rspbot
Copy link
Copy Markdown

rspbot commented May 12, 2026

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.

4 participants