diff options
author | Eric Bailey <git@esb.lol> | 2023-12-06 14:31:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 12:31:54 -0800 |
commit | a924df4dcd87b9963699643d04475dc89c926633 (patch) | |
tree | f921f6dd4a0273cebdeffcd5b2351640f532b01c /src/state/queries/invites.ts | |
parent | 47771b906658d56106c7e78efcd46524eebfb358 (diff) | |
download | voidsky-a924df4dcd87b9963699643d04475dc89c926633.tar.zst |
Refetch some data on an interval (#2114)
* Match refetch intervals to stale time * Lower refetch interval for own-profile
Diffstat (limited to 'src/state/queries/invites.ts')
-rw-r--r-- | src/state/queries/invites.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/queries/invites.ts b/src/state/queries/invites.ts index 367917af5..a765b3098 100644 --- a/src/state/queries/invites.ts +++ b/src/state/queries/invites.ts @@ -15,7 +15,8 @@ export type InviteCodesQueryResponse = Exclude< > export function useInviteCodesQuery() { return useQuery({ - staleTime: STALE.HOURS.ONE, + staleTime: STALE.MINUTES.FIVE, + refetchInterval: STALE.MINUTES.FIVE, queryKey: ['inviteCodes'], queryFn: async () => { const res = await getAgent() |