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
This commit is contained in:
parent
8a4a8af61c
commit
db62f27241
4 changed files with 8 additions and 2 deletions
|
@ -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({})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue