Description
In the early Vue 3.0 trailer, adding Portal component to Vue 3.0 was mentioned. But it seems that the corresponding RFC has not yet been created.
I have a project that is highly dependent on the portal component. Although the portal component is implemented by myself, but the functionality is similar to portal-vue. And encountered some similar problems. I don't know where I can share these issues.
-
Breaks provide/inject: Breaks provide/inject LinusBorg/portal-vue#126 . Portal may cause all mechanisms related to parent-child communication to fail. So it is important to allow mutual access between the portal and the portal-target. And the functions related to communication between the parent and child components also need to take these issues into consideration.
-
Vue-devtools support: The actual components that are mounted cannot be displayed in the children scope of portal-target. If there has a redirect or a mirror, it would be great.
Portal is a very useful feature, especially for scenarios like multi-tab code editors. But it requires some underlying compatibility of the framework to work perfectly. I will be very happy to see it become a built-in feature of Vue.