Skip to content

fix(PM-1140): show spinner when changing between projects #1647

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

Merged
merged 1 commit into from
Apr 28, 2025
Merged

Conversation

hentrymartin
Copy link
Collaborator

What's in this PR?

@@ -251,7 +253,7 @@ class Users extends Component {
)
}
{
membersExist && (
!isLoadingProject && membersExist && (

Choose a reason for hiding this comment

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

Consider adding a check for isLoadingProject before membersExist to ensure that the spinner is shown correctly when the project is loading. This change may affect the rendering logic, so ensure that isLoadingProject is correctly initialized and updated to reflect the loading state accurately.

@@ -80,9 +81,10 @@ class Users extends Component {
}

loadProject (projectId) {
this.setState({ isLoadingProject: true })

Choose a reason for hiding this comment

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

Consider handling potential errors from fetchProjectById to ensure isLoadingProject is set back to false in case of a failure. This will prevent the spinner from being displayed indefinitely.

@hentrymartin hentrymartin requested a review from kkartunov April 25, 2025 17:19
@kkartunov kkartunov merged commit d673228 into develop Apr 28, 2025
4 checks passed
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.

2 participants