Open cbloss opened 1 year ago
@cbloss Wormhole in portal-vue
3 is no longer Singleton so you need to inject it to your component to use.
<script setup>
const wormhole = useWormhole().
if (wormhole.transports.get('blockSettings')) { } // also worm hole no longer has `hasTarget`. Use `transports` instead
</script>
Hey @kat3su ! Appreciate you reaching out but this still returns undefined. :(
When I console.log(wormhole.transports)
the item is there but then when I wormhole.transports.get('blockSettings')
it's undefined.
Hey! I may be a complete blonde but I'm not seeing in the new Vue3 docs that Wormhole lost the method hasTarget. Has there been a change there? Here's what I got
Ends up with: portal_vue__WEBPACK_IMPORTED_MODULE_0__.Wormhole.hasTarget is not a function
Thanks!!