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

useList 的 clearData 不应该重置 total 属性 #460

Open
mortalYoung opened this issue Apr 25, 2024 · 0 comments
Open

useList 的 clearData 不应该重置 total 属性 #460

mortalYoung opened this issue Apr 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mortalYoung
Copy link
Collaborator

在切换分页的时候,重置 total 属性会导致 Pagination 组件的分页发生抖动

2024-04-26 01-05-24 2024-04-26 01_05_50

if (nextOptions.clearData) {
setData([]);
setTotal(0);
setError(undefined);
}

@LuckyFBB LuckyFBB added the bug Something isn't working label Aug 23, 2024
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

No branches or pull requests

2 participants