Open genki opened 2 months ago
If you remove the call of server$
from the "Top" page, the navigation is stay working even if go offline and of course after it is back.
Maybe the fail of the dynamic import in the qwikloader
crushes something.
Hi, can you simulate this behaviour with an old version like 1.3.2 pls? Is this appending in preview mode?
@gioboa In the preview mode, it happened that the "Demo" label getting multiplied per clicking "Top" link while the network is offline.
https://github.com/QwikDev/qwik/assets/4876/a496b4c8-0a5a-4894-bca8-e9c43c105aff
But the navigation has been recovered after the network is back online.
I will try to test with the qwik-1.3.2
@gioboa I have tested with the qwik-1.3.2 (dev & preview), all behaviours were exactly same.
Thanks for your tests. Can you add the expected behaviour in the description pls?
@gioboa Yes, I added.
The one of the reasons of this issue may be which there's no error handling for this line. https://github.com/QwikDev/qwik/blob/281de9701ecae0affcf18447985646917a2ef373/packages/qwik-city/runtime/src/server-functions.ts#L388
Which component is affected?
Qwik Runtime
Describe the bug
I am trying to make a qwik app that can work even while the network is offline. I expected the
server$
is not working if the network is offline. But not expected once the network went offline, the app never to be recovered even if the network is recovered again.https://github.com/QwikDev/qwik/assets/4876/635a91ed-b75a-4688-a649-10d100759327
Relating with https://github.com/QwikDev/qwik/issues/1846
Expected behaviour
The execution of the
server$
would fail while network is offline, but it becomes online, then the execution of theserver$
is succeeded. In the preview mode, it works same as in the dev mode.Reproduction
https://github.com/genki/qwik-test/tree/offline_recovery_test
Steps to reproduce
Please git clone the repo above and
to visit the page on the browser.
Then,
server$
and see the errors in the console.System Info
Additional Information
No response