Showing a modal with list of order products

Hello, I'm trying to show the list of the order products inside a modal using table, I've created a livewire component where I pass my order it and from there in my livewire component table i set a query to bring me a table with order products, All good until i change orders page number, in the opened modal for some reason instead of starting from page number 1, it start from page set in my current orders table. Any idea how i can fix this ?
1 Reply
jamesro
jamesroOP3mo ago
Oky I found this on FilamentPhp documentation https://filamentphp.com/docs/3.x/tables/advanced#preventing-query-string-conflicts-with-the-pagination-page
public function table(Table $table): Table
{
return $table
->queryStringIdentifier('orderProducts');
}
public function table(Table $table): Table
{
return $table
->queryStringIdentifier('orderProducts');
}
i've set ->queryStringIdentifier('orderProducts'); and now all good
Want results from more Discord servers?
Add your server