diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cab833..fdbcfd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [Unreleased] +- Fix a fatal `Call to undefined method ...::mount()` error for screens that +define no `mount()`: the web boot lifecycle now calls the guarded core +entrypoint `mountComponent()` instead of invoking `mount()` directly +(parity with `NativeRouter`). - Fix browser input and action events on NativePHP versions that expose `dispatchUiEvent()`, retaining the legacy dispatcher for older versions. diff --git a/src/Protocol/WebScreenRunner.php b/src/Protocol/WebScreenRunner.php index f0ea8e7..59ab2c2 100644 --- a/src/Protocol/WebScreenRunner.php +++ b/src/Protocol/WebScreenRunner.php @@ -438,7 +438,7 @@ protected static function boot(string $componentClass, array $params, ?string $l // still needed to render the placeholder, but mount() — the slow // work being deferred — is skipped until the {type:'lazy'} update. if ($mount) { - $component->mount(); + $component->mountComponent(); } return $component;