mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 05:01:08 +02:00
1. database.ts — defer pending-change writes out of the user transaction. `taskTable.add()` opens an implicit Dexie transaction scoped only to `tasks`. The creating-hook then tried to write to `_pendingChanges`, which is not in scope, throwing `NotFoundError: object store not in scope` and breaking every create across todo/calendar/contacts/etc. `queueMicrotask` is not enough — Dexie binds the active transaction to the current zone via Promise scheduling and treats microtasks as "still inside". `setTimeout(0)` breaks out cleanly so the deferred add() spawns its own implicit transaction. 2. workbench/AppPage.svelte — guard ListView reload by appId. The list-loader $effect read `app` (a $derived of getApp(appId)) and on every reactive churn cleared `ListComponent = null`, making the whole carousel flash a spinner. After a task create, liveQuery churn propagated up enough to retrigger this effect, which looked exactly like a full page reload to the user. Now we only reload when appId itself changes, with a stale-load guard for out-of-order awaits. 3. zitare/ListView.svelte — pull `quotesStore.initialize()` out of $effect. The effect called initialize() (which writes `currentQuote` $state) and then read `currentQuote` back, creating a classic write-then-read loop that hit `effect_update_depth_exceeded`. Initialize now runs in onMount; the effect is read-only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| guides | ||
| inventar | ||
| mana | ||
| manacore/apps/web/src/lib | ||
| manavoxel | ||
| matrix | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| nutriphi | ||
| photos | ||
| picture | ||
| planta | ||
| presi | ||
| questions | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||
| zitare/packages/content | ||