Skip to content

Fix React duplicate-key errors in Radio editor tests - #4512

Merged
benchristel merged 2 commits into
mainfrom
benc/quiet-radio-editor-tests
Nov 9, 2026
Merged

benchristel merged 2 commits into
mainfrom
benc/quiet-radio-editor-tests

Conversation

@benchristel

Copy link
Copy Markdown
Member

Summary:

We were rendering multiple Radio choices with the same key because our test
setup set the same id on every choice. We now provide a unique ID to each
choice.

Issue: LEMS-4703

Test plan:

pnpm test 2>&1 | grep 'Encountered two children with the same key' should not
output anything.

@benchristel
benchristel requested a review from a team as a code owner November 6, 2026 23:03
@benchristel benchristel self-assigned this Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

npm Snapshot

Want to try this PR's changes before it merges? Comment /snapshot below and we'll publish an npm snapshot you can install right away.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 492 kB

ℹ️ View Unchanged
Filename Size
packages/kas/dist/index.js 19.7 kB
packages/keypad-context/dist/index.js 501 B
packages/kmath/dist/index.js 5.83 kB
packages/math-input/dist/chunk-rolldown-runtime-ktCbWKgf.js 516 B
packages/math-input/dist/index.js 101 kB
packages/math-input/dist/strings.js 1.79 kB
packages/perseus-core/dist/index.js 27.8 kB
packages/perseus-editor/dist/index.js 107 kB
packages/perseus-linter/dist/index.js 10.6 kB
packages/perseus-score/dist/index.js 9.4 kB
packages/perseus-utils/dist/index.js 398 B
packages/perseus/dist/chunk-rolldown-runtime-DWWV-OC4.js 260 B
packages/perseus/dist/index.js 188 kB
packages/perseus/dist/strings.js 13.2 kB
packages/pure-markdown/dist/index.js 1.34 kB
packages/simple-markdown/dist/index.js 5.42 kB

compressed-size-action

@benchristel
benchristel merged commit bd88c0c into main Nov 9, 2026
15 of 17 checks passed
@benchristel
benchristel deleted the benc/quiet-radio-editor-tests branch November 9, 2026 15:43
handeyeco pushed a commit that referenced this pull request Nov 10, 2026
## Summary:
We were rendering multiple Radio choices with the same key because our test
setup set the same `id` on every choice. We now provide a unique ID to each
choice.

Issue: LEMS-4703

## Test plan:

`pnpm test 2>&1 | grep 'Encountered two children with the same key'` should not
output anything.

Author: benchristel

Reviewers: jeremywiebe, anakaren-rojas

Required Reviewers:

Approved By: jeremywiebe

Checks: ✅ 11 checks were successful, ⏭️  4 checks have been skipped

Pull Request URL: #4512
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.

2 participants