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/app-passwords.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/app-passwords.ts')
-rw-r--r-- | src/state/queries/app-passwords.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/queries/app-passwords.ts b/src/state/queries/app-passwords.ts index 6a7e43610..4b9e09a8d 100644 --- a/src/state/queries/app-passwords.ts +++ b/src/state/queries/app-passwords.ts @@ -8,7 +8,8 @@ export const RQKEY = () => ['app-passwords'] export function useAppPasswordsQuery() { return useQuery({ - staleTime: STALE.MINUTES.ONE, + staleTime: STALE.MINUTES.FIVE, + refetchInterval: STALE.MINUTES.ONE, queryKey: RQKEY(), queryFn: async () => { const res = await getAgent().com.atproto.server.listAppPasswords({}) |