icanflyit
icanflyit
Explore posts from servers
HHono
Created by DGCP3 on 9/26/2024 in #help
Adding swagger to hono API
if it’s not your middleware, one workaround is you can define your routes in a separate route const routes = new OpenAPIHono()… and then in your main app new OpenAPIHono().use(middleware).route("", routes)
4 replies
HHono
Created by DGCP3 on 9/26/2024 in #help
Adding swagger to hono API
I believe hono openapi has a note about how the handle middleware hono instances, but the just is that it doesn’t change the return types of any middleware so if it’s your own middleware, you should define it using new OpenAPIHono instead of new Hono
4 replies
DTDrizzle Team
Created by icanflyit on 8/19/2024 in #help
drizzle-typebox loses typechecking when used from another package
No description
4 replies
DTDrizzle Team
Created by icanflyit on 8/19/2024 in #help
drizzle-typebox loses typechecking when used from another package
No description
4 replies
DTDrizzle Team
Created by icanflyit on 8/19/2024 in #help
drizzle-typebox loses typechecking when used from another package
No description
4 replies
SSolidJS
Created by icanflyit on 8/4/2024 in #support
How to do client side redirects
Ok that sounds good, thanks so much :)
13 replies
SSolidJS
Created by icanflyit on 8/4/2024 in #support
How to do client side redirects
So as soon as that Navigate component is rendered it will navigate? (and if isLoggedIn() is initially true it won't navigate)
13 replies
SSolidJS
Created by icanflyit on 8/4/2024 in #support
How to do client side redirects
Also a more general js/ts question, with useNavigate, can I throw navigate() (returns void) if I don't want execution to continue? Or does an error have to be of an actual error type
13 replies
SSolidJS
Created by icanflyit on 8/4/2024 in #support
How to do client side redirects
So with a server function, will the client make a request to the solid start server (and all that code for the request is automated) and then the solid start server will make the request to the backend?
13 replies
SSolidJS
Created by icanflyit on 8/4/2024 in #support
How to do client side redirects
But there are times when the authentication will be done client side (like after logging in)
13 replies
SSolidJS
Created by icanflyit on 8/4/2024 in #support
How to do client side redirects
This is for an authentication guard (against an external server), since I have SSR the goal is that the authentication request is made from ssr and if it fails, it's redirected and the client never receives the page
13 replies
SSolidJS
Created by icanflyit on 8/4/2024 in #support
How to do client side redirects
does useNavigate work server side (and behave like redirect())
13 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
I have solid-devtools and tanstack query devtools so I'm not sure if one of those is changing error handling (or if it's somewhere else in my project)
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
I'm still confused why my errors aren't being printed to console (Any error thrown inside a component shows an error on a screen but top level errors seem to just dissapear (and cause everything in that suspense to not render)
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
I have it all working now, thanks so much :)
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
Wait and when I use "use server", is that making an endpoint the client can call?
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
That makes a lot more sense lol
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
Wait is the idea that the lazy imports are not top level
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
How would I implement that here so that I only call it on the server without using use_server
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
But I'm never calling testFunc()
43 replies