Skip to content

Commit 932417e

Browse files
authored
Assume component is loaded on ajax requests
1 parent 836b169 commit 932417e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infinityloop/LazyComponent/LazyComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function saveState(array &$params): void
5050
public function loadState(array $params): void
5151
{
5252
parent::loadState($params);
53-
$this->loaded = (bool) ($params['lazyComponent_loaded'] ?? $this->loaded);
53+
$this->loaded = (bool) ($params['lazyComponent_loaded'] ?? ($this->getPresenter()->isAjax()));
5454
}
5555

5656
protected function beforeRender() : void

0 commit comments

Comments
 (0)