SalesforceLabs / FileExplorer

With the Lightning File Explorer, you can create and then view a hierarchy of your files associated with a record. The files are nested within a familiar tree structure which we are all used to.
BSD 3-Clause "New" or "Revised" License
36 stars 47 forks source link

endless spinner in digital experience #15

Open alexanderthurn opened 2 years ago

alexanderthurn commented 2 years ago

Hi, we have the problem that the file explorer spinner does not disappear (sometimes) in our salesforce digital experience community.

i figured out that if i put a breakpoint in the first line of "renderedCallback" in qsycdFileExplorerTree.js it renders later and thus it somehow always works so i guess it is a timing issue or something.

hint: if i remove the spinner manually or by js code the component works well so i can access all files and stuff and it fully works.

paull10au commented 2 years ago

Thanks @alexanderthurn

Does it happen every single time?

We have tested in a few Exp Sites internally (Using latest Chrome) and the spinner hides successfully..

ta Paul

alexanderthurn commented 2 years ago

Hi Paul. Thanks for your reply. It does not happen everytime. Our idea is that because our loading times fluctuate it loads too slow/fast or something in some cases. One user reported that he has no isses with chrome icognito (at least when he opens a fresh chrome icognito window) AND in generel no issues with firefox and edge so he assumes that it has to do with caching... Maybe there is something asynchronoes going on and the first load takes longer (e.g. to load the base js files or whatever) and therefore an important request starts at the right time?

Our temporary solution:

With kind regards Alex