Skip to content

fix(stream-detail): use stable key for auto-withdraw history rows (closes #1033) - #1071

Open
jdjioe5-cpu wants to merge 1 commit into
FlowwStar:mainfrom
jdjioe5-cpu:fix/issue-1033-stable-key
Open

jdjioe5-cpu wants to merge 1 commit into
FlowwStar:mainfrom
jdjioe5-cpu:fix/issue-1033-stable-key

Conversation

@jdjioe5-cpu

Copy link
Copy Markdown
Contributor

Summary

Closes #1033

This PR addresses issue #1033 by replacing the non-stable array index key (key={idx}) on auto-withdraw history rows in app/app/stream/[id]/page.tsx with a stable composite key: key={${entry.timestamp}-${idx}``.

Changes

  • app/app/stream/[id]/page.tsx:
    • Updated auto-withdraw history entry mapping from key={idx} to key={${entry.timestamp}-${idx}`` to avoid React DOM node reuse mismatches when entries are prepended/appended.

Verification

  • Verified related auto-withdraw tests (npx vitest run auto-withdraw).
  • Cleanly mergeable with upstream main ('ort' strategy 0 conflicts).

This branch had an error being deployed

1 failed deployment
staging — 75862394 Deployed Oct 24, 2026 by jdjioe5-cpu via deploy-staging #364
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.

Use a stable key for auto-withdraw history rows

1 participant