whitespacecode / nova-table-card

Nova Card for Custom Tables
MIT License
9 stars 4 forks source link

Pagination Conflict Between Two Tables on the Same Dashboard #3

Closed gasner closed 3 days ago

gasner commented 4 days ago

Description: There's a conflict with pagination when adding two components to the same dashboard in Laravel Nova. Changing the page on one table causes the other table to display the same data, as if they are sharing the same state.

Steps to reproduce:

Add two tables from the package to the same dashboard. Configure both tables to use pagination. Navigate to a different page on one of the tables. Observe that the second table's data gets overwritten with the first table's data. Expected Behavior: Each table should maintain its state and pagination independently without affecting the other.

Actual Behavior: Changing the page in one table updates the data in the other table, causing them to display the same content.

Environment:

Laravel Nova Version:4.0 Package Version: 1.0.4 Laravel Version: 10.0 PHP Version: 8.1

whitespacecode commented 3 days ago

Hi @gasner,

I am able to reproduce the issue and will look into it!

whitespacecode commented 3 days ago

@gasner This should be fixed in the latest release v1.0.5

Please check the documentation for how to add multiple pagination instances on the same page

gasner commented 3 days ago

Thanks