docs: fifth-pass guide metadata and doc ownership cues

This commit is contained in:
Scott Idem
2026-06-12 16:58:23 -04:00
parent e966261324
commit 1e3f541a39
11 changed files with 23 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
# Stability Patterns for liveQuery + Svelte 5
**Last Updated:** 2026-06-12
Dexie's `liveQuery` works well with Svelte 5 runes, but the combination requires a few stable patterns so queries don't get recreated unintentionally and components render correctly on a "cold start" (empty IndexedDB).
- Keep the observable instance stable: wrap `liveQuery` in a stable `$derived` so the observable isn't recreated on every render. Recreate the `liveQuery` only when explicit dependencies change (IDs, filters, or search keys).