fix(app): stale show (#16236)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { For, createEffect, createMemo, on, onCleanup, Show, startTransition, Index, type JSX } from "solid-js"
|
import { For, createEffect, createMemo, on, onCleanup, Show, Index, type JSX } from "solid-js"
|
||||||
import { createStore, produce } from "solid-js/store"
|
import { createStore, produce } from "solid-js/store"
|
||||||
import { useNavigate, useParams } from "@solidjs/router"
|
import { useNavigate, useParams } from "@solidjs/router"
|
||||||
import { Button } from "@opencode-ai/ui/button"
|
import { Button } from "@opencode-ai/ui/button"
|
||||||
@@ -160,7 +160,7 @@ function createTimelineStaging(input: TimelineStageInput) {
|
|||||||
}
|
}
|
||||||
const currentTotal = input.messages().length
|
const currentTotal = input.messages().length
|
||||||
count = Math.min(currentTotal, count + input.config.batch)
|
count = Math.min(currentTotal, count + input.config.batch)
|
||||||
startTransition(() => setState("count", count))
|
setState("count", count)
|
||||||
if (count >= currentTotal) {
|
if (count >= currentTotal) {
|
||||||
setState({ completedSession: sessionKey, activeSession: "" })
|
setState({ completedSession: sessionKey, activeSession: "" })
|
||||||
frame = undefined
|
frame = undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user