I just went through the “Supporting Multiple Toaster Notifications At Once” video. Awesome stuff.
When an entity is created, I redirect from the create to the edit route. How can I show a notification, that the entity was created/saved?
I could flash a message on create:
session()->flash('notify', 'created');
Then in the component I could do:
if(session()->has('notify')) {
$this->notify('...');
}
However this does not work, because there is no method in livewire that is executed after render, right?
How would you approach that problem?
Warm regards,
art