cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-1574] Avatar not Loading after New Account Setup

Open shirazdole opened this issue 1 year ago β€’ 5 comments

CleanShot 2023-04-21 at 23.25.31@2x.png

This is a dumby account, but the avatar isn't loading after it's been set in settings (granted username has not been paid for)

CleanShot 2023-04-21 at 23.26.30@2x.png

From SyncLinear.com | CAL-1574

shirazdole avatar Apr 21 '23 15:04 shirazdole

@shirazdole can I take this one.

vaibhav135 avatar Apr 22 '23 12:04 vaibhav135

@shirazdole I am not able to reproduce this problem. Can you please give more info.

image

vaibhav135 avatar Apr 22 '23 12:04 vaibhav135

Hey @shirazdole I dug into this issue and found the cause. It seems to be an issue of browser caching. Everything is updating fine but because the image url stays the same, the browser caches it and hence does not update unless that component re-renders.

I am attaching a drive link with a video where I reproduced the issue: https://drive.google.com/file/d/1Nu7u2lYYZqTZkqN90rwnqq77o8JV0bnr/view?usp=sharing

ExplorerAadi avatar Apr 25 '23 22:04 ExplorerAadi

Hey @sean-brydon Could you please suggest a workaround for dealing with this caching of image issue? I have explained the issue in my comment and also attached a video.

The major problem seems to be components not re-rendering after image update and I cannot just do a force refresh after update because that will be a terrible user experience.

ExplorerAadi avatar Apr 28 '23 19:04 ExplorerAadi

Hi @shirazdole I raised the PR which resolves this issue.

Keyurkd avatar Apr 30 '23 16:04 Keyurkd

Closing because PR was merged.

keithwillcode avatar Jul 14 '23 14:07 keithwillcode