Pinia usage in Micro Frontends #586
-
We are investigating the use of Micro Frontends in our Vue applications architecture. Would the Pinia stores in different Micro Frontends within the same Vue application be accessible from each other? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It should be, yes. You must use the same pinia instance for all apps so they share the same state. |
Beta Was this translation helpful? Give feedback.
-
@ljcremer Be mindful of what you share with Pinia along with your MFS, because it could turn your architecture into a distributed monolith. What is your use case? |
Beta Was this translation helpful? Give feedback.
It should be, yes. You must use the same pinia instance for all apps so they share the same state.