da963519ffe2fecc3ea02a845144f880dd60dd25
useFollowedProfiles was fetching kind 0 events for all 435 followed users via useAuthors on every page load, just to enable client-side search matching. This sent a massive query to all relays unnecessarily. Instead, useSearchProfiles now uses the already-cached follow list pubkeys (from useFollowList) to sort relay search results, putting followed users first without any extra network requests.
Description
Languages
TypeScript
95.7%
Java
1.5%
JavaScript
0.9%
Swift
0.9%
CSS
0.5%
Other
0.4%