Mihai Andrei
Mihai Andrei
Explore posts from servers
DTDrizzle Team
Created by Sadra on 9/22/2023 in #help
how enable wal for sqlite with drizzle ?
Or should I somehow add it to the bette-sqlite adapter
7 replies
DTDrizzle Team
Created by Sadra on 9/22/2023 in #help
how enable wal for sqlite with drizzle ?
But is that enough to put this in a migration file?
7 replies
DTDrizzle Team
Created by Sadra on 9/22/2023 in #help
how enable wal for sqlite with drizzle ?
Hello! @Sadra have you ever found a response?
7 replies
HHono
Created by amgau on 8/15/2024 in #help
RPC Type confusion
In order to narrow the type
6 replies
HHono
Created by amgau on 8/15/2024 in #help
RPC Type confusion
You need to also check for error
6 replies
HHono
Created by amgau on 8/15/2024 in #help
RPC Type confusion
If I remember correctly
6 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
Sorry for the print screens but it is easier since I’m on the phone
11 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
Then. You need to pass the type and do the declare module
11 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
No description
11 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
Notice you don’t provide a type when you create the hono instance
11 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
Just use your middleware on the route and it will have access to it
11 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
If you do it like this, you don’t need to use the declare module “hono”
11 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
Hello
11 replies
HHono
Created by Paul Dlug on 8/10/2024 in #help
Type safety for middleware that sets context variables
No description
11 replies
HHono
Created by Mihai Andrei on 8/8/2024 in #help
Server Sent Events
I think i've found something related. It seems i need to use stream instead https://github.com/honojs/hono/issues/2993
4 replies
HHono
Created by Mihai Andrei on 8/8/2024 in #help
Server Sent Events
Is this the expected way to use SSE in hono?
4 replies
HHono
Created by Mihai Andrei on 8/8/2024 in #help
Server Sent Events
The fix seems to be to add this inside streamSSE:
let isAborted = false
stream.onAbort(() => {
isAborted = true;
})
while(!isAborted) {
await stream.sleep(500);
}
let isAborted = false
stream.onAbort(() => {
isAborted = true;
})
while(!isAborted) {
await stream.sleep(500);
}
4 replies