Skip to content

Commit b851d2c

Browse files
committed
Check for main request before live request
1 parent 27223b5 commit b851d2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveComponent/src/EventListener/LiveComponentSubscriber.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ public function onKernelResponse(ResponseEvent $event): void
282282
$request = $event->getRequest();
283283
$response = $event->getResponse();
284284

285-
if (!$this->isLiveComponentRequest($request)) {
285+
if (!$event->isMainRequest()) {
286286
return;
287287
}
288288

289-
if (!$event->isMainRequest()) {
289+
if (!$this->isLiveComponentRequest($request)) {
290290
return;
291291
}
292292

0 commit comments

Comments
 (0)