shakespeare.diy 3e3d7e3dcf fix: parallelize author/stats prefetch and stop seeding empty author entries
Two bugs in the useFeed prefetch approach:

1. Empty author seeding was blocking mentions from resolving.
   We were calling setQueryData(['author', pk], {}) for any feed post
   author with no profile on our relay. If that same pubkey appeared
   as a @mention inside another post, useAuthor found the empty {} in
   cache, considered it fresh, and never queried — so the mention showed
   a generated name forever. Fix: only seed cache when we actually got a
   profile event back. Let useAuthor handle the no-profile case itself.

2. Author and stats prefetches were sequential (await author, then await
   stats) when they're completely independent. Now run in parallel with
   Promise.all — page load time roughly halved for the prefetch step.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-18 10:03:03 -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%