Unable to find component: [app.filament.widgets.kickoff-property-table-widget]

Seek Help, i've code like this, but have some errors, when i create di kickoff the result Unable to find component: [app.filament.widgets.kickoff-property-table-widget] but that data success input to database App\Filament\Widgets\KickoffPropertyTableWidget.php <?php namespace App\Filament\Widgets; use App\Models\KickoffProperty; use Filament\Widgets\TableWidget as BaseWidget; class KickoffPropertyTableWidget extends BaseWidget { public $data; public function mount($data = null) { $this->data = $data; } protected $listeners = ['refreshScorecardTable' => '$refresh']; public function table(Table $table): Table { return $table ->query( KickoffProperty::query() ) ->columns([ ]) ->paginated(false); } } App\Filament\Resources\JourneyResource\Pages\CreateJourney.php Step::make('Kickoff Property') ->schema([ Actions::make([ Action::make('Create Kickoff Property') ->form([ ]) ->action(function (array $data, Get $get, $livewire) { $kickOff = new KickoffProperty; $kickOff->save(); // Refresh the table data $livewire->dispatch('refreshScorecardTable'); }), ]), View::make('kicoffTable') ->view('filament.widgets.kickoff-property-table-widget') ]) views\filament\widgets\kickoff-property-table-widget.blade.php <div> @livewire(\App\Filament\Widgets\KickoffPropertyTableWidget::class, [ 'data' => $this->data['data_result_investment_schema'] ?? [], ]) </div>
1 Reply
slakkie
slakkie4mo ago
Hey @Alvika Aji Prahasta did you maybe find a solution to this. I have a similar situation where i am trying to refresh a component, thus it needs to listen to a Livewire event I want to throw?
Want results from more Discord servers?
Add your server