refactor(app): centralize session state (#33641)

This commit is contained in:
Brendan Allan
2026-06-25 02:16:39 +00:00
committed by GitHub
parent 56a37c3640
commit 3b4aaafd41
27 changed files with 865 additions and 1149 deletions
@@ -50,7 +50,7 @@ export function createSessionComposerState(options?: { closeMs?: number | (() =>
const todos = createMemo((): Todo[] => {
const id = params.id
if (!id) return []
return serverSync().data.session_todo[id] ?? []
return serverSync().session.data.todo[id] ?? []
})
const done = createMemo(
@@ -111,7 +111,6 @@ export function createSessionComposerState(options?: { closeMs?: number | (() =>
const clear = () => {
const id = params.id
if (!id) return
serverSync().todo.set(id, [])
sync().set("todo", id, [])
}