Custom action triggers /livewire/update
This update tries to reload data in table (as I can see in debugbar). But this action should show modal window and refresh table only when user clicked "Confirm"
5 Replies
Guys, please help)
Custom action triggers /livewire/updateThat's how Livewire works.
But this action should show modal window and refresh table only when user clicked "Confirm"You probably need to build your own Action that uses the modal via Alpine and then calls the reload method.
Anyway it's a bit strange that when I click on some button (action) with confirmation it tries to reload data, as I don't confirm any action and just want to show confirmation window. It's a problem for me. I have heavy table with a lot of data, it takes 10 sec to load this table. And I should wait the same 10 sec to just show the confirmation modal window
Anyway it's a bit strange that when I click on some button (action) with confirmation it tries to reload dataAll those modals work with Livewire. So it sends a requests to Livewire and that rehydrates the current table. It's a known limitation with Livewire. All actions rehydrate the state on the serverside. We are trying to solve this with v4.
Thanks!