Joaquim Ley
Joaquim Ley
HHono
Created by fOfer on 7/5/2024 in #help
zValidator not coercing types correctly
You should change from: c.req.query() to c.req.valid('query') Reference: - https://hono.dev/docs/guides/validation
10 replies
HHono
Created by Jing on 7/3/2024 in #help
Hono JS best practice for DRY
Well either create a shared lib that does the common logic or API B calls API A (but this introduces another set of issues, networking, availability, etc)
5 replies
HHono
Created by Jing on 6/29/2024 in #help
Synchronous function returns no value unless await
Got it, that makes sense -- server actions are async by nature. (https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations) Please provide all context next time so we can all better help you 🚀 Don't forget to mark this thread as Solved ✅
6 replies
HHono
Created by Jing on 6/29/2024 in #help
Synchronous function returns no value unless await
you mean this is in a NextJS server action?
6 replies
HHono
Created by Jing on 6/29/2024 in #help
Synchronous function returns no value unless await
Can you please provide the details of the getEbayAuthUrl() function (don't forget to omit any secrets/api keys if that's the case) Also, have you tried to console.log("authUrl: ", authUrl to actually see what's being returned vs what's being stored in the database?
6 replies
HHono
Created by Huge Letters on 6/22/2024 in #help
How to resolve relative routes
Good question, I thought would have some options available being the OP. 😅
10 replies
HHono
Created by Huge Letters on 6/22/2024 in #help
How to resolve relative routes
Please mark this issue as solved ✅ 🙂
10 replies
HHono
Created by MarvinKR on 6/19/2024 in #help
All GET/POST api calls returns Internal server error 500
Btw that share is timestamped to the part you should be interested in, he first introduces the hono RPC package followed by react query (and their integration)
10 replies
HHono
Created by MarvinKR on 6/19/2024 in #help
All GET/POST api calls returns Internal server error 500
Hey give a look at this video, it seems like you could extract the same way of thinking/implementing: - https://youtu.be/jXyTIQOfTTk?si=qENuET34TNutMB-R&t=3171
10 replies