couincouin007
couincouin007
Explore posts from servers
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
hoping drizzle team will provide more convenient type helpers soon!
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
thanks i'll read that!
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
Anyway, don't worry about option 2, that's pretty easy as well
any help? 😄 I don't think you speak about it in your article, except if I missed something?
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
im going through your article, great stuff! i was also thinking about creating a facade, Im improving my skills on a pet project so I try not to go too far, but at the same time, I try to make my code be "elegant", and thats kind of frustating to not have many resources showing such pattern in tutorials / courses
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
im a bit confused "i dont let any of my ui code call any db directly", do you mean thats what im doing in my example? because thats also what I try to avoid 😄
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
But a React component can be turned into a client component, so it could potentially runs on the client (again, in the example, its on the server there)
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
Im using Next.js with React Server Components, so my code example in this case would run on the server
19 replies