LinusBorg / portal-vue

A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)
http://portal-vue.linusb.org
MIT License
3.89k stars 188 forks source link

Question: Deliberately using 2 portal targets with same name #397

Open dsl101 opened 1 year ago

dsl101 commented 1 year ago

I couldn't see anything specific on this, but I have a use case where I'd like the same portal content be displayed in 2 different places. I've created 2 <portal-target name="xyz"> components, and of course currently getting the Target xyz already exists warning. I was about to disable that using the option, but wanted to check that this use is valid, or is it likely to cause other issues?

For what it's worth, it seems to be working fine...