diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-01-04 17:36:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 17:36:27 -0800 |
commit | db62f272412df2c34e1a57200291b53fa1cd07aa (patch) | |
tree | a3944eed82535671bd41d6e2234dbc78ef4aa4c7 /src/state/queries/app-passwords.ts | |
parent | 8a4a8af61c47ba315bcf39d6170825e316bfd241 (diff) | |
download | voidsky-db62f272412df2c34e1a57200291b53fa1cd07aa.tar.zst |
Reduce web requests (#2420)
* Stop auto-refetching app passwords and invites on an interval * Don't poll for posts or notifs if the app/tab isnt focused
Diffstat (limited to 'src/state/queries/app-passwords.ts')
-rw-r--r-- | src/state/queries/app-passwords.ts | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/state/queries/app-passwords.ts b/src/state/queries/app-passwords.ts index 4b9e09a8d..014244f01 100644 --- a/src/state/queries/app-passwords.ts +++ b/src/state/queries/app-passwords.ts @@ -9,7 +9,6 @@ export const RQKEY = () => ['app-passwords'] export function useAppPasswordsQuery() { return useQuery({ staleTime: STALE.MINUTES.FIVE, - refetchInterval: STALE.MINUTES.ONE, queryKey: RQKEY(), queryFn: async () => { const res = await getAgent().com.atproto.server.listAppPasswords({}) |