fix pre-step lifecycle regressions

This commit is contained in:
_Kerman
2026-07-31 19:40:59 +08:00
parent fcc2b5e282
commit 8e88b17c9f
37 changed files with 331 additions and 265 deletions

View File

@@ -156,7 +156,7 @@ export class Inbox {
inbox.length - actualStart,
)
if (actualDeleteCount === 0 && inserted.length === 0) return []
const outcome = discardRemoved && actualDeleteCount > 0 ? 'canceled' : undefined
const outcome = discardRemoved && actualDeleteCount > 0 ? 'canceled' as const : undefined
const splice = {
target,
start: actualStart,