404 after dispatch livewire event
Hello Community.
I created a custom page for the post resource, for processing images.
To delete images I created a filament action in the livewire component, and then dispatch the delete function which is on the custom page.
I followed the structure described in the livewire docs - https://livewire.laravel.com/docs/nesting#listening-for-events-from-children
But when trying to delete an image, a 404 error occurs. It seems that after deletion, a return to the livewire component occurs, which no longer exists.
Please help me to fix this error. Thanks in advance.
My code:
Resource Custom page
custom-page-list
Livewire component
post-processing

6 Replies
everything works properly when I remove
->requires Confirmation()
. but how can I keep it? 😵💫try putting the requiresConfirmation after the action.
it didn't help. it looks like the problem is in close-modal. it tries to close the modal that has already been removed along with the livewire component.

what about
nope. i think i need to delete
close-modal
from dispatches. but cant find a way to do thatdamn. Good luck then.