shakespeare.diy c019a65a2e Fix IndexedDB cache-first loading strategy
Complete rewrite of caching approach - check IndexedDB BEFORE network queries for instant loads.

Key changes:
- Removed fake "local relay" approach (doesn't work with NPool)
- useAuthor: Check eventStore.getManyProfiles() first, return cached instantly
- useFollowList: Check eventStore.query() first, return cached instantly
- useFeed: Check eventStore.query() first, return cached instantly
- All hooks: Fire background network refresh after returning cached data

Fixed bugs:
- getKey() now returns correct key type for each store
- Removed debug logging spam
- Proper error handling (silent failures for cache writes)

Result: When data is cached, queries return in <10ms instead of waiting for network.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-17 23:59:34 -06:00
2026-02-16 16:54:01 -06:00
2026-02-16 16:54:01 -06:00
S
Description
Activist social network and fundraising platform on Nostr
AGPL-3.0 43 MiB
Languages
TypeScript 95.7%
Java 1.5%
JavaScript 0.9%
Swift 0.9%
CSS 0.5%
Other 0.4%