You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @jsxImportSource jsr:@hono/hono/jsx */import{delay}from'jsr:@std/async';import{Hono}from'jsr:@hono/hono';constapp=newHono();functionSyncComponent(){return<h1>Hello from Sync component!</h1>;}asyncfunctionAsyncComponent(){awaitdelay(1000);return<h1>Hello from Async component!</h1>;}app.get('/sync',(c)=>{returnc.html(<SyncComponent/>);});app.get('/async',(c)=>{returnc.html(<AsyncComponent/>);});Deno.serve(app.fetch);
This code works on Deno v1.45.5 but not on later versions. Please take a look on the different behaviors:
v1.45.5
Screencast.from.2024-08-28.16-26-48.mp4
v1.46.1
Screencast.from.2024-08-28.16-29-06.mp4
Deno v1.46.1 for some reason returns an empty response, also if you trigger many requests the server crashes with the following error:
Do you know what is happening here?
Thanks.
The text was updated successfully, but these errors were encountered:
Version: Deno 1.46.1
Please see https://hono.dev/docs/guides/jsx#async-component
Hello! Please take a look at this example:
This code works on Deno v1.45.5 but not on later versions. Please take a look on the different behaviors:
v1.45.5
Screencast.from.2024-08-28.16-26-48.mp4
v1.46.1
Screencast.from.2024-08-28.16-29-06.mp4
Deno v1.46.1 for some reason returns an empty response, also if you trigger many requests the server crashes with the following error:
Do you know what is happening here?
Thanks.
The text was updated successfully, but these errors were encountered: