Fix: Profile update refresh issues (#8570)
* profile update refresh fixes * updated avatar based on logged in user * lint & types check fixes * fixed settings layout to fetch udpated session * pushing the 8448 changes to separate PR * removing hook not required * Removed extra code --------- Co-authored-by: Keyur Patel <[email protected]> Co-authored-by: Alan <[email protected]>
This commit is contained in:
3 files changed
+24
-6
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { trpc } from "../trpc";
|
||||
|
||||
export function useAvatarQuery() {
|
||||
const avatarQuery = trpc.viewer.avatar.useQuery(undefined, {
|
||||
retry(failureCount) {
|
||||
return failureCount > 3;
|
||||
},
|
||||
});
|
||||
|
||||
return avatarQuery;
|
||||
}
|
||||
|
||||
export default useAvatarQuery;
|
||||
Reference in new issue
Block a user