how to resolve hydration failed error when including button shadcn dialog
I have this dialog built out of shadcn's components:
which is giving me this error:
but goes away when I remove the Button component. wai?! thanks!
9 Replies
Solution
as child on the trigger?
yes, exactly
Wdym by that
I thought when you asked
as child on the trigger
, you meant
I see now that I may need to add asTrigger
to the DialogTrigger component
let me try that now
oh awesome. that fixed ithello guys anyone have experience with using uploadthing with pdfs?
@hadi__mk0 I don't. sorry. I might though in the near future! (not that that helps you now 😦 )
okk thank you man
you can ask the specific question in a separate thread here, though
I'm not sure what the adoption is like, but from the videos, it sounds like it's fairly high now
ohh i did askk but i want to know like if i can embed the uploaded pdfs in my web page
so the user can see them