Dispatch event not working on action

EditRecord in panel 1 Action::make('Close Case') ->label(strval(__('close_case'))) ->action(function (Model $record) { $this->dispatch('switchedTeam',[$record])->to(PagesEditStudentCenter::class); }), same resource in panel 2 EditRecord #[On('switchedTeam')] public function switchedTeam($record) { info("list"); dd($record->id); } while i execute this close case action the switchedTeam function is not triggered in the panel 2
1 Reply
AliBabba420
AliBabba420OP13mo ago
i am using multi panel and in panel 1 i have a student resource edit page where i have a headeraction close case and there i use dispatch event to the same resource edit page in panel 2 but there the switchedTeam function is not getting the $record from dispatch
Want results from more Discord servers?
Add your server