Skip to content

Commit

Permalink
Check for main request before live request
Browse files Browse the repository at this point in the history
  • Loading branch information
6insanes committed Nov 29, 2023
1 parent 27223b5 commit b851d2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ public function onKernelResponse(ResponseEvent $event): void
$request = $event->getRequest();
$response = $event->getResponse();

if (!$this->isLiveComponentRequest($request)) {
if (!$event->isMainRequest()) {
return;
}

if (!$event->isMainRequest()) {
if (!$this->isLiveComponentRequest($request)) {
return;
}

Expand Down

0 comments on commit b851d2c

Please sign in to comment.