Uncaught (in promise) Component not found

I have a delete action on my livewire component., which is an edit modal/slideover. It's working fine, but when I delete something, I get a console error:
Uncaught (in promise) Component not found: sRSJ1ScPReiBPyLRJjGp
Uncaught (in promise) Component not found: sRSJ1ScPReiBPyLRJjGp
Everything still seems to function correctly with no other issues. Am I doing anything incorrectly that would lead to this error? I hate to just ignore errors in the console, but I can't seem to get it to work without the error. It's like it's getting confused because it's deleting itself from the DOM, but that's kind of the idea.
public function mount(int $id = null): void
{
$this->taskId = $id;
$this->team = SelectedLocation::get()->team ?? new Team();
}

public function render()
{
$this->task = MonthEndTask::with('timeline', 'timeline.user')->find($this->taskId) ?? new MonthEndTask();
$this->form->fill($this->task->attributesToArray());

return view('livewire.month-end.edit-month-end-task', ['task' => $this->task]);
}

public function deleteAction(): Action
{
return Action::make('delete')
->size('sm')
->requiresConfirmation()
->color('danger')
->action(function (array $arguments) {
$this->task->delete();
$this->dispatch('refreshTasks')->to(MonthEndTasks::class);
});
}
public function mount(int $id = null): void
{
$this->taskId = $id;
$this->team = SelectedLocation::get()->team ?? new Team();
}

public function render()
{
$this->task = MonthEndTask::with('timeline', 'timeline.user')->find($this->taskId) ?? new MonthEndTask();
$this->form->fill($this->task->attributesToArray());

return view('livewire.month-end.edit-month-end-task', ['task' => $this->task]);
}

public function deleteAction(): Action
{
return Action::make('delete')
->size('sm')
->requiresConfirmation()
->color('danger')
->action(function (array $arguments) {
$this->task->delete();
$this->dispatch('refreshTasks')->to(MonthEndTasks::class);
});
}
3 Replies
yagrasdemonde
yagrasdemonde2w ago
Did you resolve this issue ?
Jon Mason
Jon Mason5d ago
no unfortunately I'm still trying to resolve it.
yagrasdemonde
yagrasdemonde5d ago
I had a similar issue too….
Want results from more Discord servers?
Add your server