Skip to content

fix(ai-trace): List disappears on breakpoint change#106548

Merged
ArthurKnaus merged 1 commit intomasterfrom
arthurknaus/tet-1718-ai-spans-ui-aispanlist-vanishes-after-resizing-the-window
Jan 20, 2026
Merged

fix(ai-trace): List disappears on breakpoint change#106548
ArthurKnaus merged 1 commit intomasterfrom
arthurknaus/tet-1718-ai-spans-ui-aispanlist-vanishes-after-resizing-the-window

Conversation

@ArthurKnaus
Copy link
Member

@ArthurKnaus ArthurKnaus commented Jan 20, 2026

Problem

nodesByTransaction.entries() creates an iterator, which React is in general able to handle and it renders without problems.
However, as breakpoints change the Stack component re-renders but the children / iterator is still the same instance as before, which already has finished iterating. Therefore, nothing remains to render and the list vanishes.

Solution

Transform the iterator into an array before passing it as children.

@ArthurKnaus ArthurKnaus requested a review from a team as a code owner January 20, 2026 06:50
@linear
Copy link

linear bot commented Jan 20, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 20, 2026
@ArthurKnaus ArthurKnaus merged commit 4e5e441 into master Jan 20, 2026
56 of 57 checks passed
@ArthurKnaus ArthurKnaus deleted the arthurknaus/tet-1718-ai-spans-ui-aispanlist-vanishes-after-resizing-the-window branch January 20, 2026 07:03
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants