Skip to content

Commit 0c49236

Browse files
author
Meli
committed
docs(desktop): update users-batch freshness comments to 10 minutes
The B6 change raised the per-pubkey entry check and query staleTime in useUsersBatchQuery from 60s to 10 minutes; two comments still described the 60s window. Comments only. Co-authored-by: Meli <5aaa86bce934fc3445fc254aab560a40923f10252f92107e665073dede0e04d3@buzz.block.builderlab.xyz> Signed-off-by: Meli <5aaa86bce934fc3445fc254aab560a40923f10252f92107e665073dede0e04d3@buzz.block.builderlab.xyz>
1 parent 8133d70 commit 0c49236

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎desktop/src/features/profile/hooks.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ export function useUserProfileQuery(pubkey?: string) {
284284

285285
// Per-pubkey resolution cache backing `useUsersBatchQuery`'s delta fetch.
286286
// `summary: null` records a relay-confirmed miss so unknown pubkeys aren't
287-
// re-requested every page. Entries older than the hook's 60s staleTime are
288-
// treated as unresolved and refetched.
287+
// re-requested every page. Entries older than the hook's 10-minute staleTime
288+
// are treated as unresolved and refetched.
289289
export type UsersBatchEntry = {
290290
summary: UserProfileSummary | null;
291291
fetchedAt: number;
@@ -301,7 +301,8 @@ export const usersBatchEntryKey = (pubkey: string) => [
301301
* run re-fetches these profiles from the relay. Must be called anywhere a
302302
* specific profile (or a containing `users-batch` query) is invalidated —
303303
* otherwise the re-run resolves from the still-fresh-looking entry and
304-
* renders the stale name/avatar for up to the entry's 60s freshness window.
304+
* renders the stale name/avatar for up to the entry's 10-minute freshness
305+
* window.
305306
* Synchronous, so callers can evict before awaiting aggregate invalidations.
306307
*/
307308
export function evictUsersBatchEntries(

0 commit comments

Comments
 (0)