Kalil
Explore posts from serversWWasp-lang
•Created by Kalil on 8/23/2024 in #đŸ™‹questions
Simple File Upload
Hey. What would be the simplest way to add a simple file upload? Like profile picture editing
I know there's multer, but it doesn't seem like such a straightforward solution compared to the other features of wasp
It would be nice if there was something simpler like Adonis' AttachmentLite.
12 replies
TTCTheo's Typesafe Cult
•Created by Kalil on 7/23/2024 in #questions
Do I need `HydrateClient` on every Next.js route?
I'm trying t3 stack for first time, and I noticed that in Home route component, there's a trpc prefetch and a
HydrateClient
component wrapping all the elements.
I assume that is supposed to make streaming pending prefetches to work, right?
How can abstract that? For example avoiding repeating HydrateClient every time I have a prefetch. And also even avoiding the prefetch call at all by configuring something at the useQuery level?4 replies