diff --git a/src/common/LifecycleWatcher.ts b/src/common/LifecycleWatcher.ts index b13f7021..b68e22dc 100644 --- a/src/common/LifecycleWatcher.ts +++ b/src/common/LifecycleWatcher.ts @@ -179,9 +179,10 @@ export class LifecycleWatcher { return; } this.#navigationRequest = request; - this.#navigationResponseReceived?.reject( - new Error('New navigation request was received') - ); + // Resolve previous navigation response in case there are multiple + // navigation requests reported by the backend. This generally should not + // happen by it looks like it's possible. + this.#navigationResponseReceived?.resolve(); this.#navigationResponseReceived = createDeferredPromise(); if (request.response() !== null) { this.#navigationResponseReceived?.resolve();