UModal necessary when programmatically using UModals?
Hey there
I am currently struggling to find a use case, why one should use
In my case, I have a component that shows a form (let's call it
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?