© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
13 replies
Mohammed Ouda

An issue in calling a Livewire component inside custom field

I am trying to Call a liveware component inside a Filament custom component. but I get in browser console:
livewire.js?id=cc800bf4:4493 Uncaught Snapshot missing on Livewire component with id: tKy6aA8eZYpGT01wuW8h
livewire.js?id=cc800bf4:4493 Uncaught Snapshot missing on Livewire component with id: tKy6aA8eZYpGT01wuW8h


the custom Field:
use Filament\Forms\Components\Field;

class ImportLessonMaterial extends Field
{
    protected string $view = 'filament.import-lesson-material';
}
use Filament\Forms\Components\Field;

class ImportLessonMaterial extends Field
{
    protected string $view = 'filament.import-lesson-material';
}


the view filament.import-lesson-material blade:
@livewire('create-post')
@livewire('create-post')


the liveware component:
use Livewire\Component;

class CreatePost extends Component
{
    public function render()
    {
        return view('livewire.create-post');
    }
}
use Livewire\Component;

class CreatePost extends Component
{
    public function render()
    {
        return view('livewire.create-post');
    }
}


the view livewire.create-post blade:
<div>
    here we go...
</div>
<div>
    here we go...
</div>


the custom field usage inside filament EditPage:
ImportLessonMaterial::make('import_lesson_material')->columnSpan('full')
ImportLessonMaterial::make('import_lesson_material')->columnSpan('full')


To be noted:
- I followed (https://filamentphp.com/docs/3.x/forms/fields/custom) to create a custom field.
- I followed (https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#adding-the-form) to create a liveware component.
- this is a simplified description of my main issue that I already posted before (❓┊helpIssue in using custom component within Repeater)
Custom fields - Form Builder - Filament
Adding a form to a Livewire component - Form Builder - Filament
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Calling a livewire PHP method from a custom field component
FilamentFFilament / ❓┊help
3y ago
Filament Action inside a custom Livewire component
FilamentFFilament / ❓┊help
2y ago
Including a Livewire component inside an Infolist
FilamentFFilament / ❓┊help
3y ago
Custom form field and Custom Livewire component
FilamentFFilament / ❓┊help
2y ago