Table custom query, where from request path.
I have a table with sub-entities. I wan't to display only limited list of sub-entities based on param from request path:
http://localhost:3005/admin/events/43
This renders well, however the form contains one action. When I click on this action:
The form for some reason is reloading with the request path of POST/PUT action, which doesn't have my argument.
The question is: why does it reload the form? Is it the expected behavior of the framework?
Solution:Jump to solution
Thank you, it works! For the history:
```php
public int $eventId;
public function mount(): void...
2 Replies
yes, when livewire rerenders the page it will fetch that data again, its expected
refactor your code to save the query parameter in a public property in mount() of the livewire component, then call that
Solution
Thank you, it works! For the history: