Vue3 component loaded via importmaps lose reactivity #10292
-
Hello, I'm trying to export a Vue container (.vue file) in order to load it via importmaps into another microfrontend. The component is loaded succesfully but reactivity is lost as the actions do not trigger a rerender. Any suggestion on how to address this problem? We can assume the component works as it was tested in the frontend is located. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hard to give a definitive answer with this level of info, but generally, this kind of problem happens when two seperate copies of Vue are being included. Judging by your description, your included component might import Vue from a different place than the rest of the app, meaning your app now has two reactivity systems tracking things independently, so changes from one system won't trigger effects in the other. |
Beta Was this translation helpful? Give feedback.
Hard to give a definitive answer with this level of info, but generally, this kind of problem happens when two seperate copies of Vue are being included.
Judging by your description, your included component might import Vue from a different place than the rest of the app, meaning your app now has two reactivity systems tracking things independently, so changes from one system won't trigger effects in the other.