Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endless spinner in digital experience #15

Open
alexanderthurn opened this issue Jul 5, 2022 · 2 comments
Open

endless spinner in digital experience #15

alexanderthurn opened this issue Jul 5, 2022 · 2 comments

Comments

@alexanderthurn
Copy link

alexanderthurn commented Jul 5, 2022

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
Copy link
Collaborator

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
Copy link
Author

alexanderthurn commented Aug 18, 2022

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:

<script> /* file explorer hack to remove the spinner that does not disappear under some circumstances */ window.setInterval(() => {document.getElementsByTagName('qsyd_fe-qsyd-file-explorer')[0]?.getElementsByTagName('lightning-spinner')[0]?.remove()}, 5000) </script> <style> /* file explorer hack to remove the document tree on the left side of the file explorer as it does not work quite often */ .file-explorer-container .file-tree-container, .file-explorer-container .drag-bar { display: none !important; } </style>

With kind regards
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants