originjs / vite-plugin-federation

Module Federation for vite & rollup
Other
2.39k stars 241 forks source link

How to use Remote store data on the host side, project is vue3+pinia #611

Closed likang329 closed 4 months ago

likang329 commented 4 months ago

I want to use the Pinea data from the Remote side on the Host side. When I expose the entire store from the Remote side and introduce the actions method on the Host side, there is no problem. However, when using the data from the state, I cannot obtain it. How can I obtain it?

This is data from Remote:

微信图片_20240714184201

This is the Host obtaining the data of pinia from the Remote end

微信图片_20240714184209

This is a remote leak

微信图片_20240714185104

This is the introduction of the Host side

微信图片_20240714184237 微信图片_20240714184244