Skip to content

Commit 56241a1

Browse files
authored
Revert assume component is loaded
1 parent 932417e commit 56241a1

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->getPresenter()->isAjax()));
53+
$this->loaded = (bool) ($params['lazyComponent_loaded'] ?? $this-loaded);
5454
}
5555

5656
protected function beforeRender() : void

0 commit comments

Comments
 (0)