N
Nuxtβ€’8mo ago
JonathanDoerfler

UModal necessary when programmatically using UModals?

Hey there I am currently struggling to find a use case, why one should use<UModal> when using <UModals> and useModal() programmatically. Am I just blind or did I really find a way to make the codebase a little neater? πŸ™ˆ In my case, I have a component that shows a form (let's call it MyForm). On another page, I want to open the same form within an modal. For now, I would have to create a new component NewComp only consisting of <template><UModal><MyForm></UModal></template>. I would prefer calling useModal().open(MyForm) instead of useModal().open(NewComp) - the code should already know that I want to open a modal?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server