Notifications works when triggered on mount() but not when triggered on submit()?

Hi! I'm stuck on showing notifications in the panel builder. I'm trying to show a notification to the user to inform them that no results are found for their search query. Using the following approach on a custom page:
    public function submit(): void
    {
        Notification::make()
            ->title('This should be shown on submit')
            ->warning()
            ->send();

        // dd('We get here!');
    }

The notification is never shown but when I uncomment the dd() this is executed as expected. The weird thing is that the notifications seem to work fine on the mount() function. The following snippets shows a notification when re-loading the page:
    public function mount(): void
    {
        Notification::make()
            ->title('This is a test notifications')
            ->warning()
            ->send();
        $this->form->fill([]);
    }


Thanks in advance!
Was this page helpful?