-
Hello, I'm desparate for help. Instead of using redux i wanted to keep it simple and use vue 3 reactivity that could be imported in react app. Therefore I could use composition API to create a store served from my shell and expose this store to remote apps. After importing the store to my external app (still vuejs for the test) each application get a different instance of the store and the data I show in both apps are disconnected. I couldn't find any example that meet my needs. Here is the store that I expose from the vue shell:
in my vue shell app
when I click on the button "FOO +1", value gets updated +1. in my remote app:
When i click on button "BAR +5" the value get update +5 BUT the value is not updated in the shell app store, it has different instance and the value is not the same in both app. What did I miss ? The vue.config.js from shell
the vue.config.js from the remote app
Any help would be much appreciated ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've been given the solution : |
Beta Was this translation helpful? Give feedback.
I've been given the solution :
Needed to add the shell app as a remote of itself then import the store in the shell app, same way as i'm doing in my remote app.