diff --git a/src/TwigComponent/src/ComponentRenderer.php b/src/TwigComponent/src/ComponentRenderer.php index bd7ba4cdd14..706efe3e093 100644 --- a/src/TwigComponent/src/ComponentRenderer.php +++ b/src/TwigComponent/src/ComponentRenderer.php @@ -104,7 +104,10 @@ public function embeddedContext(string $name, array $props, array $context, stri public function finishEmbeddedComponentRender(): void { - $this->componentStack->pop(); + $mounted = $this->componentStack->pop(); + + $event = new PostRenderEvent($mounted); + $this->dispatcher->dispatch($event); } private function preRender(MountedComponent $mounted, array $context = []): PreRenderEvent