-
Notifications
You must be signed in to change notification settings - Fork 174
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
luigiAfterInit lifecycle hook + app loading indicator #787
luigiAfterInit lifecycle hook + app loading indicator #787
Conversation
…oading-indicator # Conflicts: # client/src/lifecycleManager.js # client/src/luigi-client.js # docs/luigi-client-api.md
This reverts commit 8c9caca.
Co-Authored-By: Alexandra Simeonova <[email protected]>
Co-Authored-By: Alexandra Simeonova <[email protected]>
Co-Authored-By: Alexandra Simeonova <[email protected]>
Co-Authored-By: Alexandra Simeonova <[email protected]>
* @since 0.6.4 | ||
*/ | ||
hideAppLoadingIndicator() { | ||
const appLoadingIndicator = document.querySelector( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we just render the loading spinner and overlay in the place where luigi itself is rendered?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because Luigi itself is not rendered yet when we already show the loading spinner. We would need to create and set the spinner programmatically, which might take a while under some circumstances - we had it in place initially, but Philipp wanted to have it the way it is implemented now - simplification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least we are consistent with the naming luigi-app-*
selectors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…kus/luigi into 757-initial-app-loading-indicator
…kus/luigi into 757-initial-app-loading-indicator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, good job!
Luigi.ux().hideAppLoadingIndicator()
luigiAfterInit
lifecycle hook.