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

Préavis - Affiche la durée de la dernière requête dans la liste #3729

Merged

Conversation

ivangabriele
Copy link
Member

@ivangabriele ivangabriele commented Oct 3, 2024

@ivangabriele ivangabriele added the bug Something isn't working label Oct 3, 2024
@ivangabriele ivangabriele force-pushed the ivan/simplify-loading-state-management-in-pno-list branch from 40fb50d to 2c57117 Compare October 3, 2024 07:47
const isLoadingNextPage = !isLoadingNewPage && !hasFilterAndSortingStateChanged && hasPaginationStateChanged
const isReloading = !isFirstFetchRef.current && !hasFilterAndSortingStateChanged && !hasPaginationStateChanged
const isLoadingNewPage = hasNewFilterAndSortingState
const isLoadingNextPage = !isLoadingNewPage && !hasNewFilterAndSortingState && hasNewPaginationState
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const isLoadingNextPage = !isLoadingNewPage && !hasNewFilterAndSortingState && hasNewPaginationState
const isLoadingNextPage = !hasNewFilterAndSortingState && hasNewPaginationState

Copy link
Member Author

Choose a reason for hiding this comment

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

J'ai fait par négation des deux autres plutôt du coup, pour simplifier ^^.

Copy link

sonarcloud bot commented Oct 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
1 Accepted issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@ivangabriele ivangabriele merged commit daafee1 into master Oct 3, 2024
26 checks passed
@ivangabriele ivangabriele deleted the ivan/simplify-loading-state-management-in-pno-list branch October 3, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants