c019a65a2e4ec5d3f6f6fcd07ca3bcb7872d6d7f
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>
Description
Languages
TypeScript
95.7%
Java
1.5%
JavaScript
0.9%
Swift
0.9%
CSS
0.5%
Other
0.4%