© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
16 replies
hitech95

How to access form state in Custom Livewire component

I have a form with:

public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('title')->live(),
TextInput::make('slug')->live(),
RichEditor::make('content')->live(),
Livewire::make(MyDynamicComponent::class, ['bar' => 'baz']);
]);
}

but MyDynamicComponent need access to the form state as it need to render infos based on the latest form fields (preview).

the Livewire::getData() is only called one time during initialization and updated values are not passed to the component
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Livewire component in form
FilamentFFilament / ❓┊help
2y ago
Custom form field and Custom Livewire component
FilamentFFilament / ❓┊help
2y ago
Inserting livewire component into a form, how to manage state?
FilamentFFilament / ❓┊help
2y ago
Form validation in Livewire component
FilamentFFilament / ❓┊help
3y ago