You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,14 +49,12 @@ The key principle: **all UI reads go through TanStack DB live queries, never dir
52
49
53
50
### Key Patterns
54
51
55
-
1.**Optimistic mutations** - Every write (`onMutate`) instantly updates the local collection, then the API call fires, then `collection.utils.refetch()` syncs. TanStack DB auto-rolls back on errors.
56
-
57
-
2.**Resilient multi-repo fetching** - All `fetchAll*()` functions use `Promise.allSettled` so one repo's failure doesn't break others.
52
+
1.**Resilient multi-repo fetching** - All `fetchAll*()` functions use `Promise.allSettled` so one repo's failure doesn't break others.
58
53
59
-
3.**Live queries with reactive deps** - Filters, sorts, and search terms are passed as the second argument to `useLiveQuery`, making the UI automatically re-render when state changes.
54
+
2.**Live queries with reactive deps** - Filters, sorts, and search terms are passed as the second argument to `useLiveQuery`, making the UI automatically re-render when state changes.
60
55
61
-
4.**Simple SPA routing** - A `useState<Page>` in `App.tsx` drives navigation, no URL router.
56
+
3.**Simple SPA routing** - A `useState<Page>` in `App.tsx` drives navigation, no URL router.
62
57
63
-
5.**Stale time strategy** - Labels (10min) > Repos (5min) > Issues/PRs (3min) > Events (2min), reflecting how often each entity changes.
58
+
4.**Stale time strategy** - Labels (10min) > Repos (5min) > Issues/PRs (3min) > Events (2min), reflecting how often each entity changes.
64
59
65
-
6.**Theming** - CSS custom properties in `globals.css` with a `.dark` class override and Tailwind's `dark:` variant. The design is intentionally monochromatic (black/white).
60
+
5.**Theming** - CSS custom properties in `globals.css` with a `.dark` class override and Tailwind's `dark:` variant. The design is intentionally monochromatic (black/white).
0 commit comments