(pubkey?: string)
| 261 | } |
| 262 | |
| 263 | export function useUserProfileQuery(pubkey?: string) { |
| 264 | return useQuery({ |
| 265 | enabled: typeof pubkey === "string" && pubkey.length > 0, |
| 266 | queryKey: ["user-profile", pubkey?.toLowerCase() ?? ""], |
| 267 | queryFn: () => getUserProfile(pubkey), |
| 268 | staleTime: 60_000, |
| 269 | }); |
| 270 | } |
| 271 | |
| 272 | // Per-pubkey resolution cache backing `useUsersBatchQuery`'s delta fetch. |
| 273 | // `summary: null` records a relay-confirmed miss so unknown pubkeys aren't |
no test coverage detected