Closed genki closed 2 months ago
If there is an option to use the navigator.sendBeacon()
instead of the fetch()
for server$
, it may solve the issue.
We will need a reproduction; otherwise, we can't do much with this issue...
@mhevery I have tried to make it, but for now another issue blocks it.
Currently the server$
function is not callable in the useVisibleTask$
https://stackblitz.com/edit/qwik-starter-slbpcn?file=src%2Froutes%2Findex.tsx
I will retry after this will be solved.
It says out2Clone.tee is not a function or its return value is not iterable
It seemed that using undefined function in browsers among the server$
Ah, the same issue has been reported #5044 It may need to wait the stackblitz upgrades its node version.
mhevery I have tried to make it, but for now another issue blocks it. Currently the
server$
function is not callable in theuseVisibleTask$
stackblitz.com/edit/qwik-starter-slbpcn?file=src%2Froutes%2Findex.tsx
I will retry after this will be solved.
this works https://stackblitz.com/edit/qwik-starter-rvzkyr?file=src%2Froutes%2Findex.tsx
I'll make a pr to ignore ERR_HTTP2_INVALID_STREAM errors
Which component is affected?
Qwik City (routing)
Describe the bug
When I am developing, HMR causes error randomly on the dev server like this:
This is happening when the running
server$
response has been interrupted by the page reloading. I think this is not the error must be logged because such the stream abortion by the browser is usual situation. How about to remove thisconsole.error()
? https://github.com/BuilderIO/qwik/blob/925389b418a58eecc43620251d8268b8084b5325/packages/qwik-city/middleware/node/http.ts#L99-L103Reproduction
not supplied
Steps to reproduce
This issue can happen oftenly in situation that the server checking the exit of page by calling
server$
function at the event ofwindow.onbeforeunload
.System Info
Additional Information
No response