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

OnPage datatable call api twice #2030

Closed
maxi1133 opened this issue May 11, 2021 · 4 comments
Closed

OnPage datatable call api twice #2030

maxi1133 opened this issue May 11, 2021 · 4 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@maxi1133
Copy link

maxi1133 commented May 11, 2021

[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

@mertsincan mertsincan added the Resolution: Cannot Replicate Issue could not be replicated by Core Team label May 13, 2021
@mertsincan
Copy link
Member

Hi,

Unfortunately, I couldn't replicate it. Could you please attach a codesandbox link for us to replicate?

Thanks a lot!
Best Regards,

@mbochynski
Copy link

Hi, I've replicated issue in my application. It can be replicated with examples provided in documentation too.

Here is codesandbox with some code removed from the documentation examples:
https://codesandbox.io/s/practical-mirzakhani-3ou76?file=/src/demo/DataTablePaginatorDemo.tsx

To replicate the issue you should use pagination dropdown to change number of rows displayed. As a result you will see the console log "onCustomPage1" being printed twice.

@mbochynski
Copy link

@mertsincan could you take a look at the codesandbox I've provided and remove cannot-replicate label if that works for you?

@mertsincan mertsincan added Type: Bug Issue contains a defect related to a specific component. and removed Resolution: Cannot Replicate Issue could not be replicated by Core Team labels Jul 16, 2021
@mertsincan mertsincan self-assigned this Jul 16, 2021
@mertsincan mertsincan added this to the 6.5.0 milestone Jul 16, 2021
mertsincan added a commit that referenced this issue Jul 16, 2021
mertsincan added a commit that referenced this issue Jul 16, 2021
@mertsincan
Copy link
Member

Hi @mbochynski,

Thanks a lot for your report! Fixed now.

Best Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

3 participants