mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-08 02:03:24 +00:00
fix(app): keep virtual timeline rows reactive
This commit is contained in:
parent
f59b41f1e0
commit
bd14ab0174
1 changed files with 7 additions and 5 deletions
|
|
@ -1128,6 +1128,12 @@ export function MessageTimeline(props: {
|
|||
}
|
||||
}
|
||||
|
||||
function TimelineRowView(props: { rowKey: string }) {
|
||||
const row = createMemo(() => timelineRowByKey().get(props.rowKey))
|
||||
|
||||
return <Show when={row()} keyed>{(item) => renderTimelineRow(item)}</Show>
|
||||
}
|
||||
|
||||
return (
|
||||
<Show
|
||||
when={!props.mobileChanges}
|
||||
|
|
@ -1524,11 +1530,7 @@ export function MessageTimeline(props: {
|
|||
virtualizer = handle
|
||||
}}
|
||||
>
|
||||
{(key) => {
|
||||
const row = timelineRowByKey().get(key)
|
||||
if (!row) return null
|
||||
return renderTimelineRow(row)
|
||||
}}
|
||||
{(key) => <TimelineRowView rowKey={key} />}
|
||||
</Virtualizer>
|
||||
)}
|
||||
</Show>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue