In our API, we dispatch an event afte an item is created. I have tried doing the same on our Create page using this code, but nothing is listened to. How can I register my listeners with filament?
protected function afterCreate(): void { $this->dispatch(new DataCreated($this->record)); }
protected function afterCreate(): void { $this->dispatch(new DataCreated($this->record)); }