mirror of
https://github.com/diced/zipline.git
synced 2025-12-05 20:40:12 -08:00
fix: remove avatar fetching every 30s
This commit is contained in:
@@ -10,7 +10,8 @@ const f = async () => {
|
||||
|
||||
export default function useAvatar() {
|
||||
const { data, mutate } = useSWR('/api/user/avatar', f, {
|
||||
refreshInterval: 300000,
|
||||
refreshInterval: undefined,
|
||||
revalidateOnFocus: true,
|
||||
});
|
||||
return { avatar: data, mutate };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user