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
Thanks for helping investigate. unwrapRefProxy will create a clone while portal-vue uses the same object to share data between components.
/cc @pikax I think altering the original behavior of data() might lead to confusion. Unwrapping in place doesn't sound good as well. Maybe we should revert that commit and add this to the Limitations part of README? I think it's better to discourage people to use composition apis inside data().
portal-vue does not work with v0.6.5.
Maybe related with #391.
Related commits
575d100 1f07075
composition-api/src/setup.ts
Line 170 in 2a2629e
Changing this line to
return dataValue
makes it work.https://github.com/LinusBorg/portal-vue/blob/39d8b3da44a975273a7804649410762817592a59/src/components/portal-target.tsx#L22
This object becomes empty after passing it to
unwrapRefProxy
...?Minimal reproduction
https://codesandbox.io/s/composition-api-portal-vue-bkil6
With v0.6.4 text "Portal" appears when clicking "Toggle" button.
With v0.6.5 text does not appears.
The text was updated successfully, but these errors were encountered: