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

NzQueryParams of NzTable is called with delay (~300ms) #5113

Closed
bbaret opened this issue Apr 23, 2020 · 2 comments · Fixed by #5132
Closed

NzQueryParams of NzTable is called with delay (~300ms) #5113

bbaret opened this issue Apr 23, 2020 · 2 comments · Fixed by #5132
Assignees

Comments

@bbaret
Copy link

bbaret commented Apr 23, 2020

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-bdsixw

Steps to reproduce

In the linked StackBlitz, switch to another page of the table and look at "Last delay : X" at the top of the page.

What is expected?

Almost no delay between the user's click and the call to nzQueryParams.

What is actually happening?

There is a delay between the user's click and the call to nzQueryParams (nzQueryParams_call_time - last_click_time_on_document ~= 300)

Environment Info
ng-zorro-antd 9.0.2
Browser Chrome 81
@vthinkxie
Copy link
Member

vthinkxie commented Apr 23, 2020

this works as intend, is there any reason you want to remove the denounce?

@bbaret
Copy link
Author

bbaret commented Apr 23, 2020

There is no such delay in the component's documentation using client side sorting/paging (nzCurrentPageDataChange for example, for obvious reason).
I think this debounce should be configurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants