mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
perf(app): reduce redundant data fetching
Share bounded database pools across API repositories, consolidate sync and chat queries, and make mobile refreshes cache-aware and foreground-aware. Add focused regression coverage, client freshness documentation, and repository agent role configuration.
This commit is contained in:
1 parent
9957fa43f2
commit
c7ee8a4851
81 files changed
+4456
-1400
No files matched your search
+9
-3
@@ -121,9 +121,15 @@ rejected.
|
||||
## Mobile
|
||||
|
||||
Reached from the home screen's `DaresTile`, which badges pending incoming dares. The
|
||||
screen has Active / Send / History tabs, polls on a 5s interval (there is no realtime
|
||||
channel), and opens the paywall both proactively and in reaction to a `402` — a client
|
||||
whose entitlement went stale still lands on the paywall rather than an error.
|
||||
screen has Active / Send / History tabs and opens the paywall both proactively and in
|
||||
reaction to a `402` — a client whose entitlement went stale still lands on the paywall
|
||||
rather than an error.
|
||||
|
||||
There is no realtime channel, so the screen polls on a 5s interval — but only while it is
|
||||
focused and the app is foregrounded, and each pass reads the active list alone. History,
|
||||
the catalogue and the stats are re-read only when the active set's ids or statuses
|
||||
actually changed, or on an explicit refresh or a mutation. See
|
||||
[Client data freshness](architecture/client-data-freshness.md).
|
||||
|
||||
## Tests
|
||||
|
||||
|
||||
Reference in new issue
Block a user