You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
if (Wormhole.hasTarget('blockSettings')) {
Wormhole.close({to: 'blockSettings'}, true)
}
Ends up with:
portal_vue__WEBPACK_IMPORTED_MODULE_0__.Wormhole.hasTarget is not a function
Thanks!!
The text was updated successfully, but these errors were encountered:
@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! 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!!
The text was updated successfully, but these errors were encountered: