Skip to content

test(react-vtable): cover detached Link and Button graphics - #5329

Open
fangsmile wants to merge 10 commits into
developfrom
fix/issue-4836-react-link-stage
Open

fangsmile wants to merge 10 commits into
developfrom
fix/issue-4836-react-link-stage

Conversation

@fangsmile

Copy link
Copy Markdown
Contributor

Summary

  • add regression tests proving React Link and Button custom-layout components can mount before their VRender graphics are attached to a stage
  • add an issue-like demo with 100 records and six nested custom-layout columns, plus a none changeset because the production guard already exists in develop

The regression was fixed incidentally by 1fadddcd13 (feat: compatible react version 19), which changed direct stage.renderNextFrame() calls to guarded calls. The new tests fail when those guards are reverted and pass on current develop.

Closes #4836

Test plan

  • Verify the new tests fail after locally restoring the pre-fix direct stage access
  • Run rushx test --runInBand in packages/react-vtable (3/3 tests)
  • Run rushx compile in packages/react-vtable
  • Run repository lint-staged ESLint and Prettier checks
  • Run rush build --only tag:package
  • Run the pre-push rush test --only tag:package suite
  • Render the issue demo in headless Chrome and verify all six Link/Button columns appear without the demo error boundary

🤖 Generated with Claude Code

Add regression coverage and a demo for Link and Button graphics before stage attachment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Run the shipped Link and Button renderer path in Bugserver.
This keeps Issue #4836 covered in the browser bundle.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Wait for staged Link and Button graphics before reporting demo success.
Expose the Bugserver case linkage for review traceability.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Assert Link and Button graphics survive attachment to a real VRender stage.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Expose the defining script URL so photo cases can reject stale helpers after switching versions.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Exercise the production helper through a real render lifecycle.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Keep the regression PR scoped to the reproducible unit test and demo.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Validate the intended ref lifecycle and fail incomplete readiness.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Prevent stale errors from leaking across Demo lifecycle runs.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Capture an immutable readiness run in each rendered callback.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 在自定义单元格布局时使用ReactVTable.Link某些情况下会报错:Cannot read properties of undefined (reading 'renderNextFrame')

1 participant