F
Filament11mo ago
Mazz

Snapshot missing on Livewire component with id: s1fjxQ1BkDzisW8eaBSG

I have an odd behaviour with Header Actions and a Nested Form. When trying to call a Form on localhost it works as expected. The Upload works and the behaviour is the same as in Filament v2. But when deployed I get an Error Message in the Console and my list dissapears: Snapshot missing on Livewire component with id: s1fjxQ1BkDzisW8eaBSG I found the following issues but they are already merged. - https://github.com/livewire/livewire/discussions/5860 - https://github.com/livewire/livewire/pull/5889 - Filament: 3.0.39 - Livewire 3.0.1
Action::make('importExcel')
->after(function ($data) {
$filePath = $data['file'];
$fileName = $data['attachment_file_name'];

$response = Http::attach(
'file', file_get_contents(storage_path('app/public/' . $filePath)),
$fileName
)->post(env('API_URL') . '/v1/admin-kpi-tool/' . $this->cluster->id . '/memberdata/imports/upload', [
'do_import_members' => $data['do_import_members'],
]);

$memberImportId = $response->json('data.member_import_id');

$this->redirect(route(MemberImporterProgressPage::getRouteName(), [
'memberImport' => $memberImportId,
'cluster' => $this->cluster,
]));
})
->form([
FileUpload::make('file')
->required()
->directory('excel-imports')
->storeFileNamesIn('attachment_file_name'),
Checkbox::make('do_import_members')
->default(false)
->hint('Aktivieren um Mitglieder zu importieren.'),
]),
Action::make('importExcel')
->after(function ($data) {
$filePath = $data['file'];
$fileName = $data['attachment_file_name'];

$response = Http::attach(
'file', file_get_contents(storage_path('app/public/' . $filePath)),
$fileName
)->post(env('API_URL') . '/v1/admin-kpi-tool/' . $this->cluster->id . '/memberdata/imports/upload', [
'do_import_members' => $data['do_import_members'],
]);

$memberImportId = $response->json('data.member_import_id');

$this->redirect(route(MemberImporterProgressPage::getRouteName(), [
'memberImport' => $memberImportId,
'cluster' => $this->cluster,
]));
})
->form([
FileUpload::make('file')
->required()
->directory('excel-imports')
->storeFileNamesIn('attachment_file_name'),
Checkbox::make('do_import_members')
->default(false)
->hint('Aktivieren um Mitglieder zu importieren.'),
]),
GitHub
V3 Issue with Alpine - variables not found. · livewire livewire · D...
I have a component with some properties: public bool $show = false; In that component's blade file, I use alpine to show/hide: x-data="{ show: @entangle($attributes->wire('model'...
GitHub
[V3] Add morph failing test for nested children with empty divs by ...
Currently, if there are some empty divs in a parent component, when a network request happens on the parent component, it breaks the child component. See error below This PR adds a failing test, t...
0 Replies
No replies yetBe the first to reply to this messageJoin