atoko
atoko
HHono
Created by dom on 4/30/2025 in #help
Passing `{...rest}` in the html`` tag
Jsx type in hono is “async () => string” so it’s likely to work. There’s a memo() that sounds like what you want
8 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
How are you mounting them, do other routes also have an AppEnv applied?
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
Also, try opening pallette and “restart ts server” and “reload project”. Tsc gets stuck on typing sometimes
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
What does AppEnv look like? Ive only had that happen when I was trying to control the generics too much
27 replies
HHono
Created by gavriguy on 4/18/2025 in #help
Using honox client.ts to load web components
Take out has islands and there you go
7 replies
HHono
Created by gavriguy on 4/18/2025 in #help
Using honox client.ts to load web components
No description
7 replies
HHono
Created by gavriguy on 4/18/2025 in #help
Using honox client.ts to load web components
Oh, before the react part, you can just use the lowercase script tags
7 replies
HHono
Created by gavriguy on 4/18/2025 in #help
Using honox client.ts to load web components
Check the honox docs, react renderer part, it describes the manual <script> tags to use (lowercase S)
7 replies
HHono
Created by Kazz on 4/15/2025 in #help
Node Web Sockets in Hono
Not sure
42 replies
HHono
Created by Kazz on 4/15/2025 in #help
Node Web Sockets in Hono
So dont feel bad even AI isnt aware lol
42 replies
HHono
Created by Kazz on 4/15/2025 in #help
Node Web Sockets in Hono
I had to also remind it of the middleware to get the above
42 replies
HHono
Created by Kazz on 4/15/2025 in #help
Node Web Sockets in Hono
The funny part is I went to GPT4o to ask for a hono node ws and it came up with something similar to OP
42 replies
HHono
Created by Kazz on 4/15/2025 in #help
Node Web Sockets in Hono
I was wondering about that lol, here is an example by chatgpt
42 replies
HHono
Created by Kazz on 4/15/2025 in #help
Node Web Sockets in Hono
‘ import { Hono } from 'hono'; import { ws } from 'hono/ws'; const app = new Hono(); // Define a WebSocket route app.get( '/ws', ws((ws) => { console.log('WebSocket connection established.'); // Handle incoming messages ws.onmessage = (event) => { console.log('Received:', event.data); ws.send(Echo: ${event.data}); }; // Handle connection close ws.onclose = () => { console.log('WebSocket connection closed.'); }; }) ); // Start the app app.fire(); ‘
42 replies
HHono
Created by ambergristle on 4/6/2025 in #help
@vitejs/plugin-react can't detect preamble
I might be wrong but serve might still call build to create the bundle 🤷‍♂️. Glad you found it
34 replies
HHono
Created by ambergristle on 4/6/2025 in #help
@vitejs/plugin-react can't detect preamble
No description
34 replies
HHono
Created by ambergristle on 4/6/2025 in #help
@vitejs/plugin-react can't detect preamble
Oh, its missing some of the config though :popcorngif:
34 replies
HHono
Created by ambergristle on 4/6/2025 in #help
@vitejs/plugin-react can't detect preamble
‘hono-vite-react-stack’
34 replies
HHono
Created by ambergristle on 4/6/2025 in #help
@vitejs/plugin-react can't detect preamble
Try importing Yusuke’s plugin, i believe it also includes hot reload
34 replies
HHono
Created by ambergristle on 4/6/2025 in #help
@vitejs/plugin-react can't detect preamble
Thats the base react plugin :nerdsmiley:
34 replies