Get Exposed props from the component using useModal
mdominiak2 opened this issue · 1 comments
mdominiak2 commented
Is there any way to get exposed things from the component using useModal?
e.g. We have component CatalogPopup and this component expose one function exposedFunction.
const modal = useModal({
component: CatalogPopup,
});
modal.open();
...
modal.component.exposed.exposedFunction();
Is it possible?
hunterliu1003 commented
@mdominiak2
Currently I don't think there is a way to get exposed props by using useModal. If possible you can give more context or background of your use case, I am willing to give you alternatives.