Closed cbloss closed 11 months ago
So a tiny update after digging into the repo. It looks like Wormhole.close documentation needs slight tweaking. The force is no longer there (you're welcome star wars fans) and from is now required despite the optional param in the original TransportCloser. I've tried Wormhole.close({to: 'blockSettings', from: 'blockSettings'})
and get a blank portal.
For anyone who needs it, you gotta initialize the womrhole and add a from to the close. While the documentation says from is optional, it's not if you follow the code.
I'm upgrading from Vue 2 to 3. I've got a portal that will update the first time and then not the rest of the time. Here's what I have:
In PageBuilder.vue, I set the portal (easy cheesey):
<portal-target name="blockSettings"></portal-target>
Next, I have a bunch of items that are draggable. Each item, on click is supposed to clear the portal with Wormhole.
In template:
And down below in the methods, the editBlockContent method....
Is there something I need to be doing here to get the portal to update? Appreciate any tips!