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

ui: show progress bar when switching pages #661

Merged
merged 3 commits into from
Jul 1, 2020

Conversation

baurine
Copy link
Collaborator

@baurine baurine commented Jun 29, 2020

close #126, new solution for PR #587

Show progress bar when switching pages.

Use a new layout LayoutRoot as the root layout to mount all other apps.

19

function startLoading() {
loadingBar?.current?.continuousStart()
}
window.addEventListener('single-spa:before-routing-event', startLoading)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better to use useEventListener

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me have a try.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! works fine and code is much concise than before.

Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest LGTM

@ti-srebot
Copy link

@breeswish,Thanks for you review.

@breezewish breezewish merged commit 392fbac into pingcap:master Jul 1, 2020
@baurine baurine deleted the show-progress-bar branch July 1, 2020 05:47
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

Successfully merging this pull request may close these issues.

UCP: Show progress when switching frontend page
3 participants